home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / iso9660 / news / misc / eep / eep1_9.tar next >
Tape Archive  |  1993-03-25  |  150.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Tape Archive (archive/tar).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file POSIX tar archive default
99% file POSIX tar archive, file README, mode 0000644, uid 0000375, gid 0000024, size 00000027113, seconds 05353166304, user paul, group users default
98% file data default
41% TrID Sybase iAnywhere database files default (weak)
36% TrID TAR - Tape ARchive (POSIX) default
21% TrID TAR - Tape ARchive (file) default
100% siegfried x-fmt/265 Tape Archive Format default
100% lsar Tar default
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype POSIX tar archive default
100% detectItEasy Archive: tar default
100% binwalkID POSIX tar archive default
100% xdgMime application/x-tar default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 52 45 41 44 4d 45 00 00 | 00 00 00 00 00 00 00 00 |README..|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 30 30 30 30 | 36 34 34 00 30 30 30 30 |....0000|644.0000|
|00000070| 33 37 35 00 30 30 30 30 | 30 32 34 00 30 30 30 30 |375.0000|024.0000|
|00000080| 30 30 32 37 31 31 33 00 | 30 35 33 35 33 31 36 36 |0027113.|05353166|
|00000090| 33 30 34 00 30 30 31 32 | 31 32 36 00 30 00 00 00 |304.0012|126.0...|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 75 73 74 61 72 00 30 | 30 70 61 75 6c 00 00 00 |.ustar.0|0paul...|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 30 30 30 30 30 30 30 |........|.0000000|
|00000150| 00 30 30 30 30 30 30 30 | 00 00 00 00 00 00 00 00 |.0000000|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 0a 09 45 45 50 21 20 28 | 45 61 73 79 20 45 64 69 |..EEP! (|Easy Edi|
|00000210| 74 6f 72 20 50 72 6f 67 | 72 61 6d 20 66 6f 72 20 |tor Prog|ram for |
|00000220| 2e 6e 65 77 73 72 63 20 | 66 69 6c 65 73 29 0a 0a |.newsrc |files)..|
|00000230| 09 28 63 29 20 31 39 39 | 30 2d 31 39 39 33 20 50 |.(c) 199|0-1993 P|
|00000240| 61 75 6c 20 47 69 6c 6c | 69 6e 67 77 61 74 65 72 |aul Gill|ingwater|
|00000250| 20 3c 70 61 75 6c 40 61 | 63 74 72 69 78 2e 63 6f | <paul@a|ctrix.co|
|00000260| 2e 61 74 3e 20 20 20 20 | 20 0a 0a 54 68 69 73 20 |.at> | ..This |
|00000270| 69 73 20 45 45 50 21 20 | 76 65 72 73 69 6f 6e 20 |is EEP! |version |
|00000280| 31 2e 39 2c 20 61 6e 20 | 65 78 70 65 72 69 6d 65 |1.9, an |experime|
|00000290| 6e 74 61 6c 20 2e 6e 65 | 77 73 72 63 20 65 64 69 |ntal .ne|wsrc edi|
|000002a0| 74 6f 72 20 70 72 6f 67 | 72 61 6d 2e 0a 0a 49 74 |tor prog|ram...It|
|000002b0| 20 69 73 20 69 6e 74 65 | 6e 64 65 64 20 74 6f 20 | is inte|nded to |
|000002c0| 77 6f 72 6b 20 77 69 74 | 68 20 6e 65 77 73 20 72 |work wit|h news r|
|000002d0| 65 61 64 65 72 73 20 73 | 75 63 68 20 61 73 20 60 |eaders s|uch as `|
|000002e0| 60 72 6e 27 27 20 61 6e | 64 20 60 60 74 72 6e 27 |`rn'' an|d ``trn'|
|000002f0| 27 2c 20 0a 74 68 61 74 | 20 63 72 65 61 74 65 20 |', .that| create |
|00000300| 61 20 2e 6e 65 77 73 72 | 63 20 66 69 6c 65 20 69 |a .newsr|c file i|
|00000310| 6e 20 74 68 65 20 24 48 | 4f 4d 45 20 64 69 72 65 |n the $H|OME dire|
|00000320| 63 74 6f 72 79 20 6f 66 | 20 65 61 63 68 20 75 73 |ctory of| each us|
|00000330| 65 72 2c 20 69 6e 20 0a | 6f 72 64 65 72 20 74 6f |er, in .|order to|
|00000340| 20 74 72 61 63 6b 20 77 | 68 61 74 20 6d 65 73 73 | track w|hat mess|
|00000350| 61 67 65 73 20 68 61 76 | 65 20 62 65 65 6e 20 72 |ages hav|e been r|
|00000360| 65 61 64 20 62 79 20 74 | 68 65 6d 2e 20 20 41 20 |ead by t|hem. A |
|00000370| 6d 61 6a 6f 72 20 64 65 | 73 69 67 6e 0a 6f 62 6a |major de|sign.obj|
|00000380| 65 63 74 69 76 65 20 69 | 73 20 74 68 61 74 20 69 |ective i|s that i|
|00000390| 74 20 73 68 6f 75 6c 64 | 20 62 65 20 65 61 73 79 |t should| be easy|
|000003a0| 20 74 6f 20 75 73 65 2c | 20 65 76 65 6e 20 62 79 | to use,| even by|
|000003b0| 20 73 6f 6d 65 6f 6e 65 | 20 77 68 6f 20 69 73 0a | someone| who is.|
|000003c0| 6e 6f 74 20 66 61 6d 69 | 6c 69 61 72 20 77 69 74 |not fami|liar wit|
|000003d0| 68 20 6f 74 68 65 72 20 | 55 4e 49 58 20 65 64 69 |h other |UNIX edi|
|000003e0| 74 6f 72 73 2e 20 20 54 | 68 65 72 65 20 69 73 20 |tors. T|here is |
|000003f0| 68 6f 77 65 76 65 72 20 | 61 20 64 69 73 74 69 6e |however |a distin|
|00000400| 63 74 0a 62 69 61 73 20 | 74 6f 77 61 72 64 73 20 |ct.bias |towards |
|00000410| 76 69 20 69 6e 20 73 6f | 6d 65 20 6f 66 20 74 68 |vi in so|me of th|
|00000420| 65 20 63 6f 6d 6d 61 6e | 64 73 2c 20 61 6c 74 68 |e comman|ds, alth|
|00000430| 6f 75 67 68 20 74 68 69 | 73 20 69 73 20 72 65 64 |ough thi|s is red|
|00000440| 65 65 6d 65 64 0a 73 6f | 6d 65 77 68 61 74 20 62 |eemed.so|mewhat b|
|00000450| 79 20 75 73 65 20 6f 66 | 20 63 75 72 73 65 73 2c |y use of| curses,|
|00000460| 20 77 68 69 63 68 20 6d | 65 61 6e 73 20 74 68 61 | which m|eans tha|
|00000470| 74 20 75 70 20 61 6e 64 | 20 64 6f 77 6e 20 61 72 |t up and| down ar|
|00000480| 72 6f 77 73 20 6d 61 79 | 0a 62 65 20 75 73 65 64 |rows may|.be used|
|00000490| 20 6f 6e 20 6d 61 6e 79 | 20 73 79 73 74 65 6d 73 | on many| systems|
|000004a0| 2e 20 20 41 6e 6f 74 68 | 65 72 20 72 65 64 65 65 |. Anoth|er redee|
|000004b0| 6d 69 6e 67 20 66 65 61 | 74 75 72 65 20 69 73 20 |ming fea|ture is |
|000004c0| 74 68 65 20 6f 6e 2d 6c | 69 6e 65 0a 68 65 6c 70 |the on-l|ine.help|
|000004d0| 2c 20 61 63 74 69 76 61 | 74 65 64 20 77 69 74 68 |, activa|ted with|
|000004e0| 20 74 68 65 20 60 60 3f | 27 27 20 6b 65 79 2e 0a | the ``?|'' key..|
|000004f0| 0a 4e 6f 74 65 20 74 68 | 61 74 20 45 45 50 20 69 |.Note th|at EEP i|
|00000500| 73 20 5f 4e 4f 54 5f 20 | 69 6e 74 65 6e 64 65 64 |s _NOT_ |intended|
|00000510| 20 74 6f 20 62 65 20 63 | 61 6c 6c 65 64 20 66 72 | to be c|alled fr|
|00000520| 6f 6d 20 77 69 74 68 69 | 6e 20 60 60 72 6e 27 27 |om withi|n ``rn''|
|00000530| 20 6f 72 20 0a 60 60 74 | 72 6e 27 27 20 62 79 20 | or .``t|rn'' by |
|00000540| 73 68 65 6c 6c 69 6e 67 | 20 6f 75 74 2c 20 73 69 |shelling| out, si|
|00000550| 6e 63 65 20 69 74 20 77 | 69 6c 6c 20 6d 6f 64 69 |nce it w|ill modi|
|00000560| 66 79 20 74 68 65 20 2e | 6e 65 77 73 72 63 20 77 |fy the .|newsrc w|
|00000570| 68 69 63 68 20 69 73 20 | 0a 70 72 65 73 65 6e 74 |hich is |.present|
|00000580| 6c 79 20 6f 6e 20 64 69 | 73 6b 20 2d 2d 20 61 6e |ly on di|sk -- an|
|00000590| 64 20 77 68 69 63 68 20 | 74 68 65 20 6e 65 77 73 |d which |the news|
|000005a0| 72 65 61 64 65 72 20 6d | 61 79 20 68 61 76 65 20 |reader m|ay have |
|000005b0| 6f 70 65 6e 2e 0a 0a 45 | 65 70 20 77 61 73 20 77 |open...E|ep was w|
|000005c0| 72 69 74 74 65 6e 20 62 | 79 20 50 61 75 6c 20 47 |ritten b|y Paul G|
|000005d0| 69 6c 6c 69 6e 67 77 61 | 74 65 72 20 3c 70 61 75 |illingwa|ter <pau|
|000005e0| 6c 40 61 63 74 72 69 78 | 2e 63 6f 2e 61 74 3e 2e |l@actrix|.co.at>.|
|000005f0| 0a 49 74 20 77 61 73 20 | 69 6e 69 74 69 61 6c 6c |.It was |initiall|
|00000600| 79 20 77 72 69 74 74 65 | 6e 20 66 6f 72 20 41 63 |y writte|n for Ac|
|00000610| 74 72 69 78 20 49 6e 66 | 6f 72 6d 61 74 69 6f 6e |trix Inf|ormation|
|00000620| 20 45 78 63 68 61 6e 67 | 65 2c 20 61 20 0a 50 75 | Exchang|e, a .Pu|
|00000630| 62 6c 69 63 20 41 63 63 | 65 73 73 20 55 4e 49 58 |blic Acc|ess UNIX|
|00000640| 20 42 42 53 20 69 6e 20 | 57 65 6c 6c 69 6e 67 74 | BBS in |Wellingt|
|00000650| 6f 6e 2c 20 4e 65 77 20 | 5a 65 61 6c 61 6e 64 2e |on, New |Zealand.|
|00000660| 0a 0a 54 68 69 73 20 65 | 6e 74 69 72 65 20 77 6f |..This e|ntire wo|
|00000670| 72 6b 20 69 73 20 43 6f | 70 79 72 69 67 68 74 65 |rk is Co|pyrighte|
|00000680| 64 20 28 43 29 20 31 39 | 39 31 20 62 79 20 50 61 |d (C) 19|91 by Pa|
|00000690| 75 6c 20 47 69 6c 6c 69 | 6e 67 77 61 74 65 72 2c |ul Gilli|ngwater,|
|000006a0| 20 61 73 0a 74 68 65 20 | 73 6f 6c 65 20 6f 72 69 | as.the |sole ori|
|000006b0| 67 69 6e 61 6c 20 61 75 | 74 68 6f 72 20 28 61 70 |ginal au|thor (ap|
|000006c0| 61 72 74 20 66 72 6f 6d | 20 77 68 65 72 65 20 6f |art from| where o|
|000006d0| 74 68 65 72 77 69 73 65 | 20 65 78 70 6c 69 63 69 |therwise| explici|
|000006e0| 74 6c 79 0a 61 63 6b 6e | 6f 77 6c 65 64 67 65 64 |tly.ackn|owledged|
|000006f0| 29 2e 20 20 54 68 65 20 | 73 6f 75 72 63 65 20 63 |). The |source c|
|00000700| 6f 64 65 20 70 72 6f 76 | 69 64 65 64 20 69 73 20 |ode prov|ided is |
|00000710| 61 76 61 69 6c 61 62 6c | 65 20 66 6f 72 20 61 6e |availabl|e for an|
|00000720| 79 6f 6e 65 20 74 6f 0a | 75 73 65 20 69 6e 20 61 |yone to.|use in a|
|00000730| 6e 79 20 77 61 79 2c 20 | 45 58 43 45 50 54 20 74 |ny way, |EXCEPT t|
|00000740| 68 61 74 20 79 6f 75 20 | 6d 61 79 20 6e 6f 74 20 |hat you |may not |
|00000750| 73 65 6c 6c 20 69 74 20 | 6f 72 20 70 72 65 74 65 |sell it |or prete|
|00000760| 6e 64 20 74 68 61 74 20 | 79 6f 75 0a 77 72 6f 74 |nd that |you.wrot|
|00000770| 65 20 69 74 2e 20 20 49 | 20 77 6f 75 6c 64 20 62 |e it. I| would b|
|00000780| 65 20 68 61 70 70 79 20 | 69 66 20 70 65 6f 70 6c |e happy |if peopl|
|00000790| 65 20 77 69 73 68 20 74 | 6f 20 69 6e 63 6f 72 70 |e wish t|o incorp|
|000007a0| 6f 72 61 74 65 20 70 61 | 72 74 20 6f 72 0a 61 6c |orate pa|rt or.al|
|000007b0| 6c 20 6f 66 20 74 68 69 | 73 20 69 6e 20 73 6f 6d |l of thi|s in som|
|000007c0| 65 20 6f 74 68 65 72 20 | 70 72 6f 64 75 63 74 2c |e other |product,|
|000007d0| 20 61 73 20 6c 6f 6e 67 | 20 61 73 20 79 6f 75 20 | as long| as you |
|000007e0| 61 63 6b 6e 6f 77 6c 65 | 64 67 65 20 6d 65 20 61 |acknowle|dge me a|
|000007f0| 73 0a 6f 72 69 67 69 6e | 61 6c 20 61 75 74 68 6f |s.origin|al autho|
|00000800| 72 20 6f 66 20 74 68 65 | 73 65 20 70 61 72 74 73 |r of the|se parts|
|00000810| 2e 20 20 49 66 20 74 68 | 69 73 20 63 6f 64 65 20 |. If th|is code |
|00000820| 69 73 20 74 6f 20 62 65 | 20 69 6e 63 6f 72 70 6f |is to be| incorpo|
|00000830| 72 61 74 65 64 20 0a 69 | 6e 74 6f 20 61 20 63 6f |rated .i|nto a co|
|00000840| 6d 6d 65 72 63 69 61 6c | 20 70 72 6f 64 75 63 74 |mmercial| product|
|00000850| 2c 20 49 20 72 65 71 75 | 65 73 74 20 74 68 61 74 |, I requ|est that|
|00000860| 20 79 6f 75 20 63 6f 6e | 74 61 63 74 20 6d 65 20 | you con|tact me |
|00000870| 77 69 74 68 20 72 65 67 | 61 72 64 20 0a 74 6f 20 |with reg|ard .to |
|00000880| 6c 69 63 65 6e 73 69 6e | 67 2e 0a 0a 59 6f 75 20 |licensin|g...You |
|00000890| 6d 61 79 20 63 6f 6e 74 | 61 63 74 20 6d 65 20 63 |may cont|act me c|
|000008a0| 61 72 65 20 6f 66 3a 0a | 09 41 63 74 72 69 78 20 |are of:.|.Actrix |
|000008b0| 49 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 45 78 63 68 |Informat|ion Exch|
|000008c0| 61 6e 67 65 0a 09 50 4f | 20 42 6f 78 20 31 31 2d |ange..PO| Box 11-|
|000008d0| 34 31 30 0a 09 57 65 6c | 6c 69 6e 67 74 6f 6e 0a |410..Wel|lington.|
|000008e0| 09 4e 45 57 20 5a 45 41 | 4c 41 4e 44 0a 0a 2a 2a |.NEW ZEA|LAND..**|
|000008f0| 2a 2a 20 57 41 52 4e 49 | 4e 47 3a 20 20 54 68 69 |** WARNI|NG: Thi|
|00000900| 73 20 70 72 6f 67 72 61 | 6d 20 77 69 6c 6c 20 6d |s progra|m will m|
|00000910| 6f 64 69 66 79 20 79 6f | 75 72 20 2e 6e 65 77 73 |odify yo|ur .news|
|00000920| 72 63 20 66 69 6c 65 2e | 20 20 50 6c 65 61 73 65 |rc file.| Please|
|00000930| 0a 65 6e 73 75 72 65 20 | 79 6f 75 20 68 61 76 65 |.ensure |you have|
|00000940| 20 61 20 73 61 66 65 20 | 63 6f 70 79 20 6f 66 20 | a safe |copy of |
|00000950| 74 68 69 73 20 66 69 6c | 65 20 74 6f 20 70 72 65 |this fil|e to pre|
|00000960| 76 65 6e 74 20 61 6e 20 | 75 6e 66 6f 72 74 75 6e |vent an |unfortun|
|00000970| 61 74 65 20 0a 61 63 63 | 69 64 65 6e 74 2e 0a 0a |ate .acc|ident...|
|00000980| 52 65 76 69 73 69 6f 6e | 20 48 69 73 74 6f 72 79 |Revision| History|
|00000990| 0a 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |.=======|========|
|000009a0| 3d 0a 56 65 72 73 69 6f | 6e 20 31 2e 30 20 20 60 |=.Versio|n 1.0 `|
|000009b0| 60 57 61 72 74 73 27 6e | 27 41 6c 6c 27 27 20 76 |`Warts'n|'All'' v|
|000009c0| 65 72 73 69 6f 6e 20 72 | 65 6c 65 61 73 65 64 20 |ersion r|eleased |
|000009d0| 6f 6e 20 6c 69 6d 69 74 | 65 64 20 28 4e 5a 20 6f |on limit|ed (NZ o|
|000009e0| 6e 6c 79 29 0a 64 69 73 | 74 72 69 62 75 74 69 6f |nly).dis|tributio|
|000009f0| 6e 2e 20 20 4d 61 64 65 | 20 61 76 61 69 6c 61 62 |n. Made| availab|
|00000a00| 6c 65 20 76 69 61 20 61 | 6e 6f 6e 2e 20 46 54 50 |le via a|non. FTP|
|00000a10| 20 6f 72 20 55 55 43 50 | 20 66 72 6f 6d 20 41 63 | or UUCP| from Ac|
|00000a20| 74 72 69 78 2e 0a 53 65 | 6e 74 20 74 6f 20 76 61 |trix..Se|nt to va|
|00000a30| 72 69 6f 75 73 20 70 65 | 6f 70 6c 65 20 74 6f 20 |rious pe|ople to |
|00000a40| 74 65 73 74 20 70 6f 72 | 74 69 6e 67 20 74 6f 20 |test por|ting to |
|00000a50| 6f 74 68 65 72 20 70 6c | 61 74 66 6f 72 6d 73 2c |other pl|atforms,|
|00000a60| 20 61 6e 64 0a 69 6d 70 | 6c 65 6d 65 6e 74 65 64 | and.imp|lemented|
|00000a70| 20 6f 6e 20 41 63 74 72 | 69 78 20 42 42 53 20 73 | on Actr|ix BBS s|
|00000a80| 69 6e 63 65 20 69 74 20 | 6d 69 67 68 74 20 62 65 |ince it |might be|
|00000a90| 20 75 73 65 66 75 6c 20 | 66 6f 72 20 6e 65 77 20 | useful |for new |
|00000aa0| 75 73 65 72 73 2e 20 20 | 0a 52 65 6c 65 61 73 65 |users. |.Release|
|00000ab0| 64 3a 20 4a 75 6c 79 20 | 32 30 2c 20 31 39 39 31 |d: July |20, 1991|
|00000ac0| 0a 0a 56 65 72 73 69 6f | 6e 20 31 2e 31 20 20 54 |..Versio|n 1.1 T|
|00000ad0| 68 69 73 20 76 65 72 73 | 69 6f 6e 20 72 65 63 6f |his vers|ion reco|
|00000ae0| 72 64 73 20 74 68 65 20 | 6f 72 64 65 72 20 69 6e |rds the |order in|
|00000af0| 20 77 68 69 63 68 20 6e | 65 77 73 67 72 6f 75 70 | which n|ewsgroup|
|00000b00| 73 20 61 72 65 0a 66 6f | 75 6e 64 20 69 6e 20 74 |s are.fo|und in t|
|00000b10| 68 65 20 2e 6e 65 77 73 | 72 63 20 66 69 6c 65 2c |he .news|rc file,|
|00000b20| 20 61 6e 64 20 77 69 6c | 6c 20 6d 61 69 6e 74 61 | and wil|l mainta|
|00000b30| 69 6e 20 74 68 61 74 20 | 6f 72 64 65 72 20 66 6f |in that |order fo|
|00000b40| 72 20 64 69 73 70 6c 61 | 79 0a 61 6e 64 20 6f 75 |r displa|y.and ou|
|00000b50| 74 70 75 74 20 70 75 72 | 70 6f 73 65 73 2e 20 20 |tput pur|poses. |
|00000b60| 49 6e 20 61 64 64 69 74 | 69 6f 6e 2c 20 61 6e 79 |In addit|ion, any|
|00000b70| 20 6e 65 77 73 67 72 6f | 75 70 73 20 77 68 69 63 | newsgro|ups whic|
|00000b80| 68 20 64 6f 6e 27 74 20 | 79 65 74 0a 68 61 76 65 |h don't |yet.have|
|00000b90| 20 61 6e 79 20 65 6e 74 | 72 79 20 69 6e 20 74 68 | any ent|ry in th|
|00000ba0| 65 20 6e 65 77 73 67 72 | 6f 75 70 73 20 66 69 6c |e newsgr|oups fil|
|00000bb0| 65 20 6f 72 20 6e 65 77 | 73 6c 6f 63 61 6c 20 77 |e or new|slocal w|
|00000bc0| 69 6c 6c 20 62 65 20 73 | 6f 72 74 65 64 20 73 6f |ill be s|orted so|
|00000bd0| 0a 74 68 65 79 20 61 70 | 70 65 61 72 20 66 69 72 |.they ap|pear fir|
|00000be0| 73 74 20 2d 2d 20 74 68 | 69 73 20 77 69 6c 6c 20 |st -- th|is will |
|00000bf0| 68 65 6c 70 20 66 69 6e | 64 20 6e 65 77 20 6e 65 |help fin|d new ne|
|00000c00| 77 73 67 72 6f 75 70 73 | 20 71 75 69 63 6b 6c 79 |wsgroups| quickly|
|00000c10| 20 28 62 75 74 0a 69 74 | 27 73 20 6e 6f 74 20 61 | (but.it|'s not a|
|00000c20| 20 66 75 6c 6c 20 73 6f | 6c 75 74 69 6f 6e 29 2e | full so|lution).|
|00000c30| 20 20 0a 0a 56 65 72 73 | 69 6f 6e 20 31 2e 32 20 | ..Vers|ion 1.2 |
|00000c40| 20 41 20 73 6d 61 6c 6c | 20 62 75 74 20 69 6d 70 | A small| but imp|
|00000c50| 6f 72 74 61 6e 74 20 63 | 68 61 6e 67 65 2e 20 20 |ortant c|hange. |
|00000c60| 49 74 20 73 65 65 6d 73 | 20 74 68 61 74 20 60 60 |It seems| that ``|
|00000c70| 72 6e 27 27 20 77 69 6c | 6c 0a 63 68 65 63 6b 20 |rn'' wil|l.check |
|00000c80| 79 6f 75 72 20 2e 6e 65 | 77 73 72 63 20 66 6f 72 |your .ne|wsrc for|
|00000c90| 20 6e 65 77 73 67 72 6f | 75 70 20 6e 61 6d 65 73 | newsgro|up names|
|00000ca0| 20 6e 6f 74 20 70 72 65 | 73 65 6e 74 2c 20 74 68 | not pre|sent, th|
|00000cb0| 65 6e 20 77 69 6c 6c 20 | 74 72 79 20 74 6f 0a 70 |en will |try to.p|
|00000cc0| 72 65 73 65 6e 74 20 79 | 6f 75 20 77 69 74 68 20 |resent y|ou with |
|00000cd0| 61 20 6c 61 72 67 65 20 | 6c 69 73 74 20 6f 66 20 |a large |list of |
|00000ce0| 73 6f 2d 63 61 6c 6c 65 | 64 20 22 4e 65 77 22 20 |so-calle|d "New" |
|00000cf0| 6e 65 77 73 67 72 6f 75 | 70 73 2e 20 20 49 74 0a |newsgrou|ps. It.|
|00000d00| 73 65 65 6d 73 20 74 68 | 65 20 6f 6e 6c 79 20 77 |seems th|e only w|
|00000d10| 61 79 20 74 6f 20 73 74 | 6f 70 20 74 68 69 73 20 |ay to st|op this |
|00000d20| 69 73 20 74 6f 20 6c 65 | 61 76 65 20 61 6c 6c 20 |is to le|ave all |
|00000d30| 74 68 65 20 75 6e 73 75 | 62 73 63 72 69 62 65 64 |the unsu|bscribed|
|00000d40| 0a 6e 65 77 73 67 72 6f | 75 70 73 20 69 6e 20 74 |.newsgro|ups in t|
|00000d50| 68 65 20 2e 6e 65 77 73 | 72 63 2e 20 20 54 68 69 |he .news|rc. Thi|
|00000d60| 73 20 73 65 65 6d 73 20 | 73 6f 6d 65 68 6f 77 20 |s seems |somehow |
|00000d70| 69 6e 65 6c 65 67 61 6e | 74 2c 20 62 75 74 0a 6e |inelegan|t, but.n|
|00000d80| 65 63 65 73 73 61 72 79 | 2e 0a 0a 56 65 72 73 69 |ecessary|...Versi|
|00000d90| 6f 6e 20 31 2e 33 20 20 | 41 66 74 65 72 20 61 20 |on 1.3 |After a |
|00000da0| 6c 6f 6e 67 20 68 69 61 | 74 75 73 2c 20 73 65 76 |long hia|tus, sev|
|00000db0| 65 72 61 6c 20 69 6d 70 | 6f 72 74 61 6e 74 20 62 |eral imp|ortant b|
|00000dc0| 75 67 20 66 69 78 65 73 | 20 0a 63 6f 6e 74 72 69 |ug fixes| .contri|
|00000dd0| 62 75 74 65 64 20 62 79 | 20 76 61 72 69 6f 75 73 |buted by| various|
|00000de0| 20 6e 65 74 2e 70 65 6f | 70 6c 65 2e 20 20 43 72 | net.peo|ple. Cr|
|00000df0| 65 64 69 74 73 20 66 6f | 6c 6c 6f 77 3a 0a 0a 44 |edits fo|llow:..D|
|00000e00| 65 61 6e 20 52 6f 74 68 | 20 3c 73 79 73 6f 70 40 |ean Roth| <sysop@|
|00000e10| 6d 69 78 63 6f 6d 2e 63 | 6f 6d 3e 0a 50 61 75 6c |mixcom.c|om>.Paul|
|00000e20| 20 43 6c 6f 73 65 20 3c | 70 64 63 40 73 67 69 2e | Close <|pdc@sgi.|
|00000e30| 63 6f 6d 3e 0a 41 72 6a | 61 6e 20 64 65 20 56 65 |com>.Arj|an de Ve|
|00000e40| 74 20 3c 64 65 76 65 74 | 40 77 69 6e 2e 74 75 65 |t <devet|@win.tue|
|00000e50| 2e 6e 6c 3e 0a 0a 41 73 | 20 77 65 6c 6c 20 61 73 |.nl>..As| well as|
|00000e60| 20 62 75 67 20 66 69 78 | 65 73 2c 20 73 6f 6d 65 | bug fix|es, some|
|00000e70| 20 61 64 64 69 74 69 6f | 6e 61 6c 20 66 75 6e 63 | additio|nal func|
|00000e80| 74 69 6f 6e 61 6c 69 74 | 79 3a 0a 20 6f 20 4e 65 |tionalit|y:. o Ne|
|00000e90| 77 73 67 72 6f 75 70 73 | 20 6d 61 79 20 62 65 20 |wsgroups| may be |
|00000ea0| 69 6e 64 65 78 65 64 20 | 62 79 20 6e 75 6d 62 65 |indexed |by numbe|
|00000eb0| 72 20 28 27 3a 27 20 63 | 6f 6d 6d 61 6e 64 29 0a |r (':' c|ommand).|
|00000ec0| 20 6f 20 4d 53 2d 44 4f | 53 20 76 65 72 73 69 6f | o MS-DO|S versio|
|00000ed0| 6e 20 64 65 76 65 6c 6f | 70 65 64 20 75 73 69 6e |n develo|ped usin|
|00000ee0| 67 20 50 44 43 75 72 73 | 65 73 0a 20 6f 20 43 6f |g PDCurs|es. o Co|
|00000ef0| 6d 70 61 74 69 62 6c 65 | 20 77 69 74 68 20 74 68 |mpatible| with th|
|00000f00| 65 20 57 61 66 66 6c 65 | 20 73 79 73 74 65 6d 20 |e Waffle| system |
|00000f10| 28 4d 53 2d 44 4f 53 20 | 61 6e 64 20 55 4e 49 58 |(MS-DOS |and UNIX|
|00000f20| 29 0a 0a 56 65 72 73 69 | 6f 6e 20 31 2e 34 20 20 |)..Versi|on 1.4 |
|00000f30| 54 68 65 20 6c 69 73 74 | 20 6f 66 20 6e 65 77 73 |The list| of news|
|00000f40| 67 72 6f 75 70 73 20 6e | 6f 77 20 68 61 73 20 61 |groups n|ow has a|
|00000f50| 20 74 6f 70 20 61 6e 64 | 20 62 6f 74 74 6f 6d 2c | top and| bottom,|
|00000f60| 0a 61 6e 64 20 63 6f 6d | 6d 61 6e 64 73 20 74 6f |.and com|mands to|
|00000f70| 20 67 65 74 20 74 68 65 | 72 65 2e 20 20 4e 65 77 | get the|re. New|
|00000f80| 73 67 72 6f 75 70 73 20 | 6d 61 79 20 62 65 20 64 |sgroups |may be d|
|00000f90| 65 6c 65 74 65 64 20 66 | 72 6f 6d 0a 74 68 65 20 |eleted f|rom.the |
|00000fa0| 2e 6e 65 77 73 72 63 20 | 77 69 74 68 20 74 68 65 |.newsrc |with the|
|00000fb0| 20 27 64 27 20 63 6f 6d | 6d 61 6e 64 2e 20 20 54 | 'd' com|mand. T|
|00000fc0| 68 65 20 27 64 27 20 63 | 6f 6d 6d 61 6e 64 20 28 |he 'd' c|ommand (|
|00000fd0| 64 65 6c 65 74 65 29 20 | 0a 69 73 20 6e 6f 77 20 |delete) |.is now |
|00000fe0| 61 20 74 6f 67 67 6c 65 | 2e 0a 0a 4a 61 6e 75 61 |a toggle|...Janua|
|00000ff0| 72 79 20 31 39 39 33 3a | 20 56 65 72 73 69 6f 6e |ry 1993:| Version|
|00001000| 20 31 2e 35 3a 20 20 4d | 61 6a 6f 72 20 6e 65 77 | 1.5: M|ajor new|
|00001010| 20 63 6f 6d 6d 61 6e 64 | 20 69 73 20 27 76 27 0a | command| is 'v'.|
|00001020| 66 6f 72 20 76 69 65 77 | 2c 20 77 68 69 63 68 20 |for view|, which |
|00001030| 77 69 6c 6c 20 6f 70 65 | 6e 20 74 68 65 20 64 69 |will ope|n the di|
|00001040| 72 65 63 74 6f 72 79 20 | 61 6e 64 20 6c 6f 6f 6b |rectory |and look|
|00001050| 20 74 68 72 6f 75 67 68 | 0a 68 65 61 64 65 72 73 | through|.headers|
|00001060| 20 69 6e 20 61 72 74 69 | 63 6c 65 73 20 74 6f 20 | in arti|cles to |
|00001070| 61 6c 6c 6f 77 20 62 72 | 6f 77 73 69 6e 67 20 73 |allow br|owsing s|
|00001080| 75 62 6a 65 63 74 73 2c | 20 6b 65 79 77 6f 72 64 |ubjects,| keyword|
|00001090| 73 2c 20 0a 61 75 74 68 | 6f 72 73 2c 20 64 61 74 |s, .auth|ors, dat|
|000010a0| 65 73 2c 20 65 74 63 2e | 20 20 55 73 69 6e 67 20 |es, etc.| Using |
|000010b0| 64 69 72 65 6e 74 2e 68 | 20 66 6f 72 20 64 69 72 |dirent.h| for dir|
|000010c0| 65 63 74 6f 72 79 20 61 | 63 63 65 73 73 2e 0a 0a |ectory a|ccess...|
|000010d0| 56 65 72 73 69 6f 6e 20 | 31 2e 36 3a 20 20 4d 61 |Version |1.6: Ma|
|000010e0| 6a 6f 72 20 72 65 77 72 | 69 74 65 20 6f 66 20 69 |jor rewr|ite of i|
|000010f0| 6e 69 74 69 61 6c 69 7a | 61 74 69 6f 6e 20 63 6f |nitializ|ation co|
|00001100| 64 65 20 74 6f 20 63 68 | 61 6e 67 65 20 6f 72 64 |de to ch|ange ord|
|00001110| 65 72 20 6f 66 0a 72 65 | 61 64 69 6e 67 20 66 69 |er of.re|ading fi|
|00001120| 6c 65 73 2e 20 20 4e 6f | 77 20 74 68 65 20 61 63 |les. No|w the ac|
|00001130| 74 69 76 65 20 66 69 6c | 65 20 69 73 20 72 65 61 |tive fil|e is rea|
|00001140| 64 20 66 69 72 73 74 2c | 20 74 68 65 6e 20 74 68 |d first,| then th|
|00001150| 65 20 6e 65 77 73 67 72 | 6f 75 70 0a 61 6e 64 20 |e newsgr|oup.and |
|00001160| 6e 65 77 73 6c 6f 63 61 | 6c 20 66 69 6c 65 73 2c |newsloca|l files,|
|00001170| 20 66 69 6e 61 6c 6c 79 | 20 74 68 65 20 2e 6e 65 | finally| the .ne|
|00001180| 77 73 72 63 2e 20 20 43 | 68 61 6e 67 65 64 20 74 |wsrc. C|hanged t|
|00001190| 68 65 20 27 61 27 20 63 | 6f 6d 6d 61 6e 64 20 73 |he 'a' c|ommand s|
|000011a0| 6f 0a 74 68 61 74 20 69 | 74 27 73 20 61 20 74 6f |o.that i|t's a to|
|000011b0| 67 67 6c 65 2c 20 73 77 | 61 70 70 69 6e 67 20 62 |ggle, sw|apping b|
|000011c0| 65 74 77 65 65 6e 20 61 | 6c 70 68 61 62 65 74 69 |etween a|lphabeti|
|000011d0| 63 20 73 6f 72 74 69 6e | 67 20 61 6e 64 20 74 68 |c sortin|g and th|
|000011e0| 65 20 6f 72 69 67 69 6e | 61 6c 0a 6f 72 64 65 72 |e origin|al.order|
|000011f0| 20 66 72 6f 6d 20 74 68 | 65 20 2e 6e 65 77 73 72 | from th|e .newsr|
|00001200| 63 2e 20 20 20 56 61 72 | 69 6f 75 73 20 6d 69 6e |c. Var|ious min|
|00001210| 6f 72 20 70 6f 69 6e 74 | 65 72 20 61 72 69 74 68 |or point|er arith|
|00001220| 6d 65 74 69 63 20 62 75 | 67 20 66 69 78 65 73 2e |metic bu|g fixes.|
|00001230| 0a 41 20 6e 65 77 20 66 | 65 61 74 75 72 65 20 69 |.A new f|eature i|
|00001240| 73 20 74 68 65 20 61 62 | 69 6c 69 74 79 20 74 6f |s the ab|ility to|
|00001250| 20 6d 61 72 6b 20 6e 65 | 77 73 67 72 6f 75 70 73 | mark ne|wsgroups|
|00001260| 20 77 69 74 68 20 74 68 | 65 20 22 2e 22 20 6b 65 | with th|e "." ke|
|00001270| 79 2c 0a 74 68 65 6e 20 | 6d 6f 76 65 20 74 68 65 |y,.then |move the|
|00001280| 6d 20 74 6f 20 61 62 6f | 76 65 20 74 68 65 20 63 |m to abo|ve the c|
|00001290| 75 72 73 6f 72 20 70 6f | 73 69 74 69 6f 6e 2e 20 |ursor po|sition. |
|000012a0| 20 4e 6f 74 65 20 74 68 | 61 74 20 69 66 20 6d 75 | Note th|at if mu|
|000012b0| 6c 74 69 70 6c 65 0a 67 | 72 6f 75 70 73 20 61 72 |ltiple.g|roups ar|
|000012c0| 65 20 6d 61 72 6b 65 64 | 20 74 68 65 6e 20 6d 6f |e marked| then mo|
|000012d0| 76 65 64 2c 20 74 68 65 | 79 20 6d 61 79 20 6e 6f |ved, the|y may no|
|000012e0| 74 20 73 74 61 79 20 69 | 6e 20 74 68 65 20 73 61 |t stay i|n the sa|
|000012f0| 6d 65 20 72 65 6c 61 74 | 69 76 65 0a 6f 72 64 65 |me relat|ive.orde|
|00001300| 72 20 62 65 63 61 75 73 | 65 20 6f 66 20 74 68 65 |r becaus|e of the|
|00001310| 20 73 6f 72 74 69 6e 67 | 20 75 73 65 64 2e 0a 0a | sorting| used...|
|00001320| 56 65 72 73 69 6f 6e 20 | 31 2e 36 31 3a 20 6d 69 |Version |1.61: mi|
|00001330| 6e 6f 72 20 62 75 67 20 | 66 69 78 65 73 20 74 6f |nor bug |fixes to|
|00001340| 20 61 76 6f 69 64 20 66 | 65 65 64 69 6e 67 20 4e | avoid f|eeding N|
|00001350| 55 4c 4c 20 70 6f 69 6e | 74 65 72 73 20 74 6f 0a |ULL poin|ters to.|
|00001360| 73 74 72 6c 65 6e 28 29 | 2c 20 70 6c 75 73 20 6f |strlen()|, plus o|
|00001370| 74 68 65 72 20 69 6d 70 | 72 6f 76 65 6d 65 6e 74 |ther imp|rovement|
|00001380| 73 2e 0a 0a 56 65 72 73 | 69 6f 6e 20 31 2e 37 3a |s...Vers|ion 1.7:|
|00001390| 20 4d 61 72 6b 69 6e 67 | 2c 20 73 75 62 73 63 72 | Marking|, subscr|
|000013a0| 69 62 69 6e 67 20 61 6e | 64 20 6f 74 68 65 72 20 |ibing an|d other |
|000013b0| 61 63 74 69 6f 6e 73 20 | 74 68 61 74 20 61 75 74 |actions |that aut|
|000013c0| 6f 6d 61 74 69 63 61 6c | 6c 79 0a 6d 6f 76 65 20 |omatical|ly.move |
|000013d0| 74 68 65 20 63 75 72 73 | 6f 72 20 77 69 6c 6c 20 |the curs|or will |
|000013e0| 6e 6f 77 20 6d 6f 76 65 | 20 69 74 20 69 6e 20 74 |now move| it in t|
|000013f0| 68 65 20 64 69 72 65 63 | 74 69 6f 6e 20 6f 66 20 |he direc|tion of |
|00001400| 74 68 65 20 6c 61 73 74 | 20 75 70 20 6f 72 20 64 |the last| up or d|
|00001410| 6f 77 6e 0a 6d 6f 76 65 | 6d 65 6e 74 20 63 6f 6d |own.move|ment com|
|00001420| 6d 61 6e 64 2e 20 20 53 | 65 61 72 63 68 65 73 20 |mand. S|earches |
|00001430| 77 69 6c 6c 20 61 6c 73 | 6f 20 66 6f 6c 6c 6f 77 |will als|o follow|
|00001440| 20 74 68 69 73 20 64 69 | 72 65 63 74 69 6f 6e 2c | this di|rection,|
|00001450| 20 69 2e 65 2e 20 74 6f | 0a 73 65 61 72 63 68 20 | i.e. to|.search |
|00001460| 62 61 63 6b 77 61 72 64 | 73 2c 20 66 69 72 73 74 |backward|s, first|
|00001470| 20 6d 6f 76 65 20 75 70 | 2c 20 74 68 65 6e 20 73 | move up|, then s|
|00001480| 65 61 72 63 68 2e 20 20 | 41 20 73 65 61 72 63 68 |earch. |A search|
|00001490| 20 66 6f 72 20 6e 6f 74 | 68 69 6e 67 0a 77 69 6c | for not|hing.wil|
|000014a0| 6c 20 72 65 70 65 61 74 | 20 74 68 65 20 6c 61 73 |l repeat| the las|
|000014b0| 74 20 73 65 61 72 63 68 | 20 28 73 61 6d 65 20 61 |t search| (same a|
|000014c0| 73 20 74 68 65 20 27 6e | 27 20 63 6f 6d 6d 61 6e |s the 'n|' comman|
|000014d0| 64 2e 29 20 20 45 45 50 | 20 6e 6f 77 20 6c 6f 6f |d.) EEP| now loo|
|000014e0| 6b 73 0a 66 6f 72 20 61 | 6e 64 20 72 65 73 70 65 |ks.for a|nd respe|
|000014f0| 63 74 73 20 72 6e 27 73 | 20 2e 72 6e 6c 6f 63 6b |cts rn's| .rnlock|
|00001500| 20 66 69 6c 65 2c 20 61 | 6e 64 20 63 72 65 61 74 | file, a|nd creat|
|00001510| 65 73 20 69 74 73 20 6f | 77 6e 2e 20 20 54 68 65 |es its o|wn. The|
|00001520| 20 6d 61 6e 20 70 61 67 | 65 0a 69 73 20 73 6f 6d | man pag|e.is som|
|00001530| 65 77 68 61 74 20 69 6d | 70 72 6f 76 65 64 20 77 |ewhat im|proved w|
|00001540| 69 74 68 20 61 6e 20 61 | 6c 70 68 61 62 65 74 69 |ith an a|lphabeti|
|00001550| 63 61 6c 20 6c 69 73 74 | 69 6e 67 20 6f 66 20 63 |cal list|ing of c|
|00001560| 6f 6d 6d 61 6e 64 73 2e | 0a 0a 56 65 72 73 69 6f |ommands.|..Versio|
|00001570| 6e 20 31 2e 38 3a 20 54 | 6f 20 69 6d 70 72 6f 76 |n 1.8: T|o improv|
|00001580| 65 20 65 66 66 69 63 69 | 65 6e 63 79 2c 20 49 20 |e effici|ency, I |
|00001590| 68 61 76 65 20 69 6d 70 | 6c 65 6d 65 6e 74 65 64 |have imp|lemented|
|000015a0| 20 61 20 77 72 61 70 70 | 65 72 20 66 6f 72 0a 6d | a wrapp|er for.m|
|000015b0| 61 6c 6c 6f 63 28 29 20 | 74 68 61 74 20 69 20 63 |alloc() |that i c|
|000015c0| 61 6c 6c 20 77 61 6c 6c | 6f 70 28 29 2e 20 20 54 |all wall|op(). T|
|000015d0| 68 69 73 20 61 6c 73 6f | 20 69 6e 63 6c 75 64 65 |his also| include|
|000015e0| 73 20 61 20 6d 65 63 68 | 61 6e 69 73 6d 20 66 6f |s a mech|anism fo|
|000015f0| 72 0a 67 61 72 62 61 67 | 65 20 63 6f 6c 6c 65 63 |r.garbag|e collec|
|00001600| 74 69 6f 6e 20 61 74 20 | 74 68 65 20 65 6e 64 2e |tion at |the end.|
|00001610| 20 20 45 45 50 21 20 73 | 68 6f 75 6c 64 20 6e 6f | EEP! s|hould no|
|00001620| 77 20 69 6e 69 74 69 61 | 6c 69 7a 65 20 66 61 73 |w initia|lize fas|
|00001630| 74 65 72 2e 0a 0a 46 65 | 65 70 69 6e 67 20 63 72 |ter...Fe|eping cr|
|00001640| 65 61 74 75 72 69 73 6d | 3a 20 74 68 65 20 27 6f |eaturism|: the 'o|
|00001650| 27 20 63 6f 6d 6d 61 6e | 64 20 28 6f 76 65 72 2d |' comman|d (over-|
|00001660| 62 6f 61 72 64 3f 20 6f | 76 65 72 2d 64 6f 6e 65 |board? o|ver-done|
|00001670| 3f 29 0a 77 69 6c 6c 20 | 6f 72 67 61 6e 69 7a 65 |?).will |organize|
|00001680| 20 74 68 65 20 6c 69 73 | 74 20 73 6f 20 74 68 61 | the lis|t so tha|
|00001690| 74 20 61 6c 6c 20 73 75 | 62 73 63 72 69 62 65 64 |t all su|bscribed|
|000016a0| 20 6e 65 77 73 67 72 6f | 75 70 73 20 77 69 6c 6c | newsgro|ups will|
|000016b0| 0a 62 65 20 6d 6f 76 65 | 64 20 74 6f 20 74 68 65 |.be move|d to the|
|000016c0| 20 74 6f 70 20 6f 66 20 | 74 68 65 20 6c 69 73 74 | top of |the list|
|000016d0| 2e 20 20 54 68 65 20 75 | 6e 64 65 72 6c 79 69 6e |. The u|nderlyin|
|000016e0| 67 20 73 6f 72 74 69 6e | 67 20 6f 72 64 65 72 0a |g sortin|g order.|
|000016f0| 28 61 6c 70 68 61 62 65 | 74 69 63 20 6f 72 20 6f |(alphabe|tic or o|
|00001700| 72 69 67 69 6e 61 6c 20 | 2e 6e 65 77 73 72 63 20 |riginal |.newsrc |
|00001710| 6f 72 64 65 72 29 20 77 | 69 6c 6c 20 62 65 20 72 |order) w|ill be r|
|00001720| 65 74 61 69 6e 65 64 2e | 0a 0a 46 6f 72 20 45 4d |etained.|..For EM|
|00001730| 41 43 53 20 66 61 6e 73 | 2c 20 45 45 50 21 20 6e |ACS fans|, EEP! n|
|00001740| 6f 77 20 6f 66 66 65 72 | 73 20 69 6e 63 72 65 6d |ow offer|s increm|
|00001750| 65 6e 74 61 6c 20 73 65 | 61 72 63 68 69 6e 67 20 |ental se|arching |
|00001760| 77 69 74 68 20 5e 53 20 | 6f 72 20 5e 52 2e 0a 54 |with ^S |or ^R..T|
|00001770| 68 65 20 63 75 72 73 6f | 72 20 77 69 6c 6c 20 62 |he curso|r will b|
|00001780| 65 20 70 6f 73 69 74 69 | 6f 6e 65 64 20 6f 6e 74 |e positi|oned ont|
|00001790| 6f 20 74 68 65 20 73 74 | 72 69 6e 67 20 77 68 65 |o the st|ring whe|
|000017a0| 6e 20 66 6f 75 6e 64 2e | 0a 54 68 61 6e 6b 73 20 |n found.|.Thanks |
|000017b0| 74 6f 20 56 65 72 6e 6f | 6e 20 43 2e 20 48 6f 78 |to Verno|n C. Hox|
|000017c0| 69 65 20 66 6f 72 20 74 | 68 69 73 20 63 6f 64 65 |ie for t|his code|
|000017d0| 21 0a 0a 4e 65 77 20 66 | 65 61 74 75 72 65 3a 20 |!..New f|eature: |
|000017e0| 75 73 65 20 6c 65 66 74 | 20 61 6e 64 20 72 69 67 |use left| and rig|
|000017f0| 68 74 20 61 72 72 6f 77 | 20 6b 65 79 73 20 74 6f |ht arrow| keys to|
|00001800| 20 73 68 6f 77 20 6d 6f | 72 65 20 6f 72 20 6c 65 | show mo|re or le|
|00001810| 73 73 0a 6f 66 20 74 68 | 65 20 6e 65 77 73 67 72 |ss.of th|e newsgr|
|00001820| 6f 75 70 20 6e 61 6d 65 | 20 61 6e 64 20 64 65 73 |oup name| and des|
|00001830| 63 72 69 70 74 69 6f 6e | 2e 20 20 28 41 6c 73 6f |cription|. (Also|
|00001840| 20 3c 20 61 6e 64 20 3e | 20 6b 65 79 73 2e 29 0a | < and >| keys.).|
|00001850| 0a 56 65 72 73 69 6f 6e | 20 31 2e 39 3a 20 20 53 |.Version| 1.9: S|
|00001860| 75 70 70 6f 72 74 20 66 | 6f 72 20 4e 4e 54 50 20 |upport f|or NNTP |
|00001870| 68 61 73 20 62 65 65 6e | 20 61 64 64 65 64 2e 20 |has been| added. |
|00001880| 20 54 68 69 73 20 6d 65 | 61 6e 73 20 74 68 61 74 | This me|ans that|
|00001890| 0a 45 45 50 21 20 77 69 | 6c 6c 20 63 6f 6e 6e 65 |.EEP! wi|ll conne|
|000018a0| 63 74 20 74 6f 20 74 68 | 65 20 64 65 73 69 67 6e |ct to th|e design|
|000018b0| 61 74 65 64 20 4e 4e 54 | 50 20 73 65 72 76 65 72 |ated NNT|P server|
|000018c0| 20 74 6f 20 72 65 71 75 | 65 73 74 20 69 6e 66 6f | to requ|est info|
|000018d0| 72 6d 61 74 69 6f 6e 0a | 73 75 63 68 20 61 73 20 |rmation.|such as |
|000018e0| 74 68 65 20 22 61 63 74 | 69 76 65 22 20 66 69 6c |the "act|ive" fil|
|000018f0| 65 20 61 6e 64 20 74 68 | 65 20 22 6e 65 77 73 67 |e and th|e "newsg|
|00001900| 72 6f 75 70 73 22 20 66 | 69 6c 65 2e 0a 0a 2d 2d |roups" f|ile...--|
|00001910| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001920| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001930| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001940| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0a 4e 65 77 73 20 |--------|--.News |
|00001950| 44 65 73 63 72 69 70 74 | 69 6f 6e 73 0a 3d 3d 3d |Descript|ions.===|
|00001960| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 0a 41 |========|======.A|
|00001970| 20 6d 61 6a 6f 72 20 62 | 65 6e 65 66 69 74 20 6f | major b|enefit o|
|00001980| 66 20 45 65 70 20 69 73 | 20 74 68 61 74 20 69 74 |f Eep is| that it|
|00001990| 20 69 73 20 69 6e 74 65 | 6e 64 65 64 20 74 6f 20 | is inte|nded to |
|000019a0| 70 72 6f 76 69 64 65 20 | 61 20 6d 65 63 68 61 6e |provide |a mechan|
|000019b0| 69 73 6d 0a 66 6f 72 20 | 73 65 6c 65 63 74 69 6e |ism.for |selectin|
|000019c0| 67 20 6e 65 77 73 20 67 | 72 6f 75 70 73 20 62 61 |g news g|roups ba|
|000019d0| 73 65 64 20 6f 6e 20 6d | 6f 72 65 20 74 68 61 6e |sed on m|ore than|
|000019e0| 20 6a 75 73 74 20 74 68 | 65 69 72 20 6e 61 6d 65 | just th|eir name|
|000019f0| 2e 20 20 42 79 0a 75 73 | 69 6e 67 20 6c 69 73 74 |. By.us|ing list|
|00001a00| 73 20 70 72 6f 76 69 64 | 65 64 20 62 79 20 47 65 |s provid|ed by Ge|
|00001a10| 6e 65 20 53 70 61 66 66 | 6f 72 64 2c 20 61 20 62 |ne Spaff|ord, a b|
|00001a20| 72 69 65 66 20 64 65 73 | 63 72 69 70 74 69 6f 6e |rief des|cription|
|00001a30| 20 6f 66 20 65 61 63 68 | 0a 6e 65 77 73 67 72 6f | of each|.newsgro|
|00001a40| 75 70 20 69 73 20 70 72 | 65 73 65 6e 74 65 64 20 |up is pr|esented |
|00001a50| 6f 6e 20 73 63 72 65 65 | 6e 2c 20 61 6c 6c 6f 77 |on scree|n, allow|
|00001a60| 69 6e 67 20 6e 6f 76 69 | 63 65 73 20 74 6f 20 6d |ing novi|ces to m|
|00001a70| 61 6b 65 20 64 65 63 69 | 73 69 6f 6e 73 0a 6f 6e |ake deci|sions.on|
|00001a80| 20 77 68 61 74 20 74 6f | 20 72 65 61 64 20 6d 6f | what to| read mo|
|00001a90| 72 65 20 65 61 73 69 6c | 79 2e 20 20 41 6c 74 68 |re easil|y. Alth|
|00001aa0| 6f 75 67 68 20 62 6f 74 | 68 20 60 60 72 6e 27 27 |ough bot|h ``rn''|
|00001ab0| 20 61 6e 64 20 60 60 74 | 72 6e 27 27 20 6f 66 66 | and ``t|rn'' off|
|00001ac0| 65 72 0a 74 68 65 20 4c | 20 63 6f 6d 6d 61 6e 64 |er.the L| command|
|00001ad0| 20 74 6f 20 6c 69 73 74 | 20 6e 65 77 73 20 67 72 | to list| news gr|
|00001ae0| 6f 75 70 73 2c 20 74 68 | 69 73 20 69 73 20 75 6e |oups, th|is is un|
|00001af0| 77 69 65 6c 64 79 20 69 | 66 20 79 6f 75 20 77 61 |wieldy i|f you wa|
|00001b00| 6e 74 20 74 6f 0a 73 65 | 61 72 63 68 20 66 6f 72 |nt to.se|arch for|
|00001b10| 20 73 70 65 63 69 66 69 | 63 20 6b 65 79 20 77 6f | specifi|c key wo|
|00001b20| 72 64 73 20 69 6e 20 6e | 65 77 73 67 72 6f 75 70 |rds in n|ewsgroup|
|00001b30| 20 6e 61 6d 65 73 20 6f | 72 20 64 65 73 63 72 69 | names o|r descri|
|00001b40| 70 74 69 6f 6e 73 2e 0a | 46 75 72 74 68 65 72 6d |ptions..|Furtherm|
|00001b50| 6f 72 65 2c 20 45 65 70 | 20 65 6c 69 6d 69 6e 61 |ore, Eep| elimina|
|00001b60| 74 65 73 20 74 68 65 20 | 6e 65 63 65 73 73 69 74 |tes the |necessit|
|00001b70| 79 20 74 6f 20 61 63 74 | 75 61 6c 6c 79 20 74 79 |y to act|ually ty|
|00001b80| 70 65 20 69 6e 20 74 68 | 65 0a 6e 61 6d 65 20 6f |pe in th|e.name o|
|00001b90| 66 20 61 20 6e 65 77 73 | 67 72 6f 75 70 20 77 68 |f a news|group wh|
|00001ba0| 65 6e 20 73 75 62 73 63 | 72 69 62 69 6e 67 20 74 |en subsc|ribing t|
|00001bb0| 6f 20 69 74 2e 20 20 53 | 69 6d 70 6c 79 20 70 6f |o it. S|imply po|
|00001bc0| 69 6e 74 20 61 6e 64 20 | 70 6c 61 79 21 0a 0a 45 |int and |play!..E|
|00001bd0| 65 70 20 74 72 69 65 73 | 20 74 6f 20 62 65 20 75 |ep tries| to be u|
|00001be0| 73 65 72 20 66 72 69 65 | 6e 64 6c 79 20 69 6e 20 |ser frie|ndly in |
|00001bf0| 6d 6f 76 69 6e 67 20 61 | 72 6f 75 6e 64 20 74 68 |moving a|round th|
|00001c00| 65 20 2e 6e 65 77 73 72 | 63 20 66 69 6c 65 2e 0a |e .newsr|c file..|
|00001c10| 45 78 70 65 72 69 65 6e | 63 65 64 20 55 4e 49 58 |Experien|ced UNIX|
|00001c20| 20 75 73 65 72 73 20 77 | 69 6c 6c 20 77 69 73 68 | users w|ill wish|
|00001c30| 20 74 6f 20 75 73 65 20 | 45 6d 61 63 73 20 6f 72 | to use |Emacs or|
|00001c40| 20 76 69 20 74 6f 20 65 | 64 69 74 20 74 68 65 69 | vi to e|dit thei|
|00001c50| 72 0a 2e 6e 65 77 73 72 | 63 20 66 6f 72 20 74 68 |r..newsr|c for th|
|00001c60| 65 6d 73 65 6c 76 65 73 | 2e 20 20 45 65 70 20 69 |emselves|. Eep i|
|00001c70| 73 20 69 6e 74 65 6e 64 | 65 64 20 66 6f 72 20 6e |s intend|ed for n|
|00001c80| 6f 76 69 63 65 20 75 73 | 65 72 73 2c 20 61 6e 64 |ovice us|ers, and|
|00001c90| 20 69 73 0a 61 20 67 6f | 6f 64 20 61 64 64 69 74 | is.a go|od addit|
|00001ca0| 69 6f 6e 20 74 6f 20 55 | 4e 49 58 20 62 61 73 65 |ion to U|NIX base|
|00001cb0| 64 20 42 42 53 20 73 79 | 73 74 65 6d 73 2e 0a 0a |d BBS sy|stems...|
|00001cc0| 4f 74 68 65 72 20 66 65 | 61 74 75 72 65 73 20 6f |Other fe|atures o|
|00001cd0| 66 20 45 65 70 20 69 6e | 63 6c 75 64 65 20 74 68 |f Eep in|clude th|
|00001ce0| 65 20 61 62 69 6c 69 74 | 79 20 74 6f 20 73 75 62 |e abilit|y to sub|
|00001cf0| 73 63 72 69 62 65 20 6f | 72 20 75 6e 73 75 62 73 |scribe o|r unsubs|
|00001d00| 63 72 69 62 65 20 0a 74 | 6f 20 61 20 6e 65 77 73 |cribe .t|o a news|
|00001d10| 67 72 6f 75 70 2c 20 64 | 65 6c 65 74 65 20 6e 65 |group, d|elete ne|
|00001d20| 77 73 67 72 6f 75 70 73 | 2c 20 61 6e 64 20 63 61 |wsgroups|, and ca|
|00001d30| 74 63 68 20 75 70 20 6f | 6e 20 6d 65 73 73 61 67 |tch up o|n messag|
|00001d40| 65 73 2e 20 20 0a 0a 45 | 65 70 20 77 69 6c 6c 20 |es. ..E|ep will |
|00001d50| 72 65 61 64 20 61 20 6c | 69 73 74 20 6f 66 20 6e |read a l|ist of n|
|00001d60| 65 77 73 67 72 6f 75 70 | 73 20 61 6e 64 20 64 65 |ewsgroup|s and de|
|00001d70| 73 63 72 69 70 74 69 6f | 6e 73 20 66 72 6f 6d 20 |scriptio|ns from |
|00001d80| 74 77 6f 20 66 69 6c 65 | 73 2c 0a 22 2f 75 73 72 |two file|s,."/usr|
|00001d90| 2f 6c 69 62 2f 6e 65 77 | 73 2f 6e 65 77 73 67 72 |/lib/new|s/newsgr|
|00001da0| 6f 75 70 73 22 20 6f 72 | 20 22 2f 75 73 72 2f 6c |oups" or| "/usr/l|
|00001db0| 69 62 2f 6e 65 77 73 2f | 6e 65 77 73 6c 6f 63 61 |ib/news/|newsloca|
|00001dc0| 6c 22 2e 0a 0a 54 68 65 | 20 4e 45 57 53 47 52 4f |l"...The| NEWSGRO|
|00001dd0| 55 50 53 20 66 69 6c 65 | 20 63 6f 6e 74 61 69 6e |UPS file| contain|
|00001de0| 73 20 6f 6e 65 20 6c 69 | 6e 65 20 70 65 72 20 6e |s one li|ne per n|
|00001df0| 65 77 73 20 67 72 6f 75 | 70 2e 20 20 54 68 65 20 |ews grou|p. The |
|00001e00| 66 69 72 73 74 0a 60 60 | 77 6f 72 64 27 27 20 28 |first.``|word'' (|
|00001e10| 69 6e 20 74 68 65 20 55 | 4e 49 58 20 73 65 6e 73 |in the U|NIX sens|
|00001e20| 65 29 20 6f 6e 20 74 68 | 65 20 6c 69 6e 65 20 69 |e) on th|e line i|
|00001e30| 73 20 74 68 65 20 6e 65 | 77 73 67 72 6f 75 70 20 |s the ne|wsgroup |
|00001e40| 6e 61 6d 65 2c 0a 73 65 | 70 61 72 61 74 65 64 20 |name,.se|parated |
|00001e50| 66 72 6f 6d 20 69 74 73 | 20 64 65 73 63 72 69 70 |from its| descrip|
|00001e60| 74 69 6f 6e 20 62 79 20 | 61 20 73 70 61 63 65 20 |tion by |a space |
|00001e70| 6f 72 20 74 61 62 2e 20 | 20 54 68 65 20 4e 45 57 |or tab. | The NEW|
|00001e80| 53 4c 4f 43 41 4c 0a 66 | 69 6c 65 20 69 73 20 73 |SLOCAL.f|ile is s|
|00001e90| 69 6d 69 6c 61 72 20 69 | 6e 20 73 74 72 75 63 74 |imilar i|n struct|
|00001ea0| 75 72 65 2c 20 61 6e 64 | 20 69 73 20 69 6e 74 65 |ure, and| is inte|
|00001eb0| 6e 64 65 64 20 74 6f 20 | 63 6f 6e 74 61 69 6e 20 |nded to |contain |
|00001ec0| 67 72 6f 75 70 73 0a 77 | 68 69 63 68 20 61 72 65 |groups.w|hich are|
|00001ed0| 20 70 75 72 65 6c 79 20 | 6c 6f 63 61 6c 20 74 6f | purely |local to|
|00001ee0| 20 79 6f 75 72 20 73 79 | 73 74 65 6d 2c 20 61 73 | your sy|stem, as|
|00001ef0| 20 77 65 6c 6c 20 61 73 | 20 74 68 65 20 74 6f 70 | well as| the top|
|00001f00| 20 6c 65 76 65 6c 0a 6e | 61 6d 65 73 20 6f 66 20 | level.n|ames of |
|00001f10| 61 6c 6c 20 6f 66 20 79 | 6f 75 72 20 68 69 65 72 |all of y|our hier|
|00001f20| 61 72 63 68 69 65 73 2c | 20 70 6c 75 73 20 6f 74 |archies,| plus ot|
|00001f30| 68 65 72 20 6e 61 6d 65 | 73 20 61 73 20 79 6f 75 |her name|s as you|
|00001f40| 20 64 65 73 69 72 65 20 | 66 6f 72 0a 64 65 73 63 | desire |for.desc|
|00001f50| 72 69 70 74 69 76 65 20 | 70 75 72 70 6f 73 65 73 |riptive |purposes|
|00001f60| 2e 20 20 0a 0a 65 2e 67 | 2e 20 20 66 65 77 20 61 |. ..e.g|. few a|
|00001f70| 72 74 69 63 6c 65 73 20 | 61 72 65 20 70 6f 73 74 |rticles |are post|
|00001f80| 65 64 20 69 6e 20 63 6f | 6d 70 2e 75 6e 69 78 2c |ed in co|mp.unix,|
|00001f90| 20 62 75 74 20 69 74 20 | 6d 61 6b 65 73 20 61 20 | but it |makes a |
|00001fa0| 67 72 65 61 74 0a 70 6c | 61 63 65 20 74 6f 20 68 |great.pl|ace to h|
|00001fb0| 6f 6c 64 20 74 68 65 20 | 64 65 73 63 72 69 70 74 |old the |descript|
|00001fc0| 69 6f 6e 20 66 6f 72 20 | 61 6c 6c 20 74 68 65 20 |ion for |all the |
|00001fd0| 64 69 72 65 63 74 6f 72 | 69 65 73 20 75 6e 64 65 |director|ies unde|
|00001fe0| 72 20 69 74 2e 0a 0a 49 | 6e 73 74 61 6c 6c 61 74 |r it...I|nstallat|
|00001ff0| 69 6f 6e 0a 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ion.----|--------|
|00002000| 0a 0a 45 45 50 20 6d 61 | 79 20 62 65 20 63 6f 6d |..EEP ma|y be com|
|00002010| 70 69 6c 65 64 20 77 69 | 74 68 20 6f 72 20 77 69 |piled wi|th or wi|
|00002020| 74 68 6f 75 74 20 4e 4e | 54 50 20 73 75 70 70 6f |thout NN|TP suppo|
|00002030| 72 74 2e 20 20 54 68 65 | 20 6d 61 6b 65 66 69 6c |rt. The| makefil|
|00002040| 65 0a 69 73 20 73 68 69 | 70 70 65 64 20 77 69 74 |e.is shi|pped wit|
|00002050| 68 20 4e 4e 54 50 20 63 | 6f 6d 6d 65 6e 74 65 64 |h NNTP c|ommented|
|00002060| 20 6f 75 74 2c 20 69 6e | 20 77 68 69 63 68 20 63 | out, in| which c|
|00002070| 61 73 65 20 45 45 50 21 | 20 61 73 73 75 6d 65 73 |ase EEP!| assumes|
|00002080| 20 74 68 61 74 20 0a 61 | 6c 6c 20 6e 65 77 73 20 | that .a|ll news |
|00002090| 66 69 6c 65 73 20 61 72 | 65 20 73 74 6f 72 65 64 |files ar|e stored|
|000020a0| 20 6f 6e 20 6f 6e 65 20 | 66 69 6c 65 20 73 79 73 | on one |file sys|
|000020b0| 74 65 6d 2c 20 61 6e 64 | 20 74 68 61 74 20 74 68 |tem, and| that th|
|000020c0| 65 20 70 61 74 68 73 20 | 74 6f 20 0a 74 68 65 20 |e paths |to .the |
|000020d0| 66 69 6c 65 73 20 6d 61 | 79 20 62 65 20 73 61 66 |files ma|y be saf|
|000020e0| 65 6c 79 20 68 61 72 64 | 20 63 6f 64 65 64 2e 20 |ely hard| coded. |
|000020f0| 20 50 6c 65 61 73 65 20 | 65 64 69 74 20 74 68 65 | Please |edit the|
|00002100| 20 65 65 70 2e 68 20 66 | 69 6c 65 20 74 6f 20 0a | eep.h f|ile to .|
|00002110| 63 68 61 6e 67 65 20 77 | 68 65 72 65 20 74 68 6f |change w|here tho|
|00002120| 73 65 20 70 61 74 68 73 | 20 6d 61 79 20 62 65 20 |se paths| may be |
|00002130| 6f 6e 20 79 6f 75 72 20 | 73 79 73 74 65 6d 2e 0a |on your |system..|
|00002140| 0a 54 68 65 20 2f 75 73 | 72 2f 6c 69 62 2f 6e 65 |.The /us|r/lib/ne|
|00002150| 77 73 2f 6e 65 77 73 67 | 72 6f 75 70 73 20 73 68 |ws/newsg|roups sh|
|00002160| 6f 75 6c 64 20 65 78 69 | 73 74 20 61 73 20 61 20 |ould exi|st as a |
|00002170| 72 65 73 75 6c 74 20 6f | 66 20 61 6c 6c 6f 77 69 |result o|f allowi|
|00002180| 6e 67 20 74 68 65 0a 63 | 68 65 63 6b 67 72 6f 75 |ng the.c|heckgrou|
|00002190| 70 73 20 73 63 72 69 70 | 74 20 28 70 61 72 74 20 |ps scrip|t (part |
|000021a0| 6f 66 20 27 43 27 20 6e | 65 77 73 29 20 74 6f 20 |of 'C' n|ews) to |
|000021b0| 72 75 6e 2e 20 20 41 6c | 74 65 72 6e 61 74 69 76 |run. Al|ternativ|
|000021c0| 65 6c 79 2c 20 79 6f 75 | 20 63 61 6e 0a 63 72 65 |ely, you| can.cre|
|000021d0| 61 74 65 20 74 68 65 20 | 66 69 6c 65 20 6d 61 6e |ate the |file man|
|000021e0| 75 61 6c 6c 79 20 62 79 | 20 65 64 69 74 69 6e 67 |ually by| editing|
|000021f0| 20 74 68 65 20 6d 65 73 | 73 61 67 65 73 20 77 68 | the mes|sages wh|
|00002200| 69 63 68 20 61 72 65 20 | 70 6f 73 74 65 64 20 69 |ich are |posted i|
|00002210| 6e 20 0a 6e 65 77 73 2e | 61 6e 6e 6f 75 6e 63 65 |n .news.|announce|
|00002220| 2e 6e 65 77 75 73 65 72 | 73 20 6f 6e 20 61 20 72 |.newuser|s on a r|
|00002230| 65 67 75 6c 61 72 20 62 | 61 73 69 73 20 62 79 20 |egular b|asis by |
|00002240| 74 68 65 20 6e 65 74 2e | 67 6f 64 2c 20 47 65 6e |the net.|god, Gen|
|00002250| 65 20 53 70 61 66 66 6f | 72 64 2e 20 20 0a 59 6f |e Spaffo|rd. .Yo|
|00002260| 75 20 6d 61 79 20 65 6d | 62 65 64 20 63 6f 6d 6d |u may em|bed comm|
|00002270| 65 6e 74 73 20 69 6e 20 | 74 68 65 20 66 69 6c 65 |ents in |the file|
|00002280| 20 62 79 20 73 74 61 72 | 74 69 6e 67 20 74 68 65 | by star|ting the|
|00002290| 20 6c 69 6e 65 20 77 69 | 74 68 20 61 20 60 60 23 | line wi|th a ``#|
|000022a0| 27 27 2e 20 20 0a 54 68 | 65 20 2f 75 73 72 2f 6c |''. .Th|e /usr/l|
|000022b0| 69 62 2f 6e 65 77 73 2f | 6e 65 77 73 6c 6f 63 61 |ib/news/|newsloca|
|000022c0| 6c 20 66 69 6c 65 20 63 | 6f 6e 74 61 69 6e 73 20 |l file c|ontains |
|000022d0| 79 6f 75 72 20 6f 77 6e | 20 6c 6f 63 61 6c 20 6e |your own| local n|
|000022e0| 65 77 73 67 72 6f 75 70 | 73 20 0a 28 6f 6e 65 73 |ewsgroup|s .(ones|
|000022f0| 20 6e 6f 74 20 63 6f 76 | 65 72 65 64 20 62 79 20 | not cov|ered by |
|00002300| 47 65 6e 65 27 73 20 70 | 6f 73 74 69 6e 67 73 29 |Gene's p|ostings)|
|00002310| 2c 20 6f 72 20 6f 6e 65 | 73 20 73 70 65 63 69 66 |, or one|s specif|
|00002320| 69 63 20 74 6f 20 79 6f | 75 72 20 63 6f 75 6e 74 |ic to yo|ur count|
|00002330| 72 79 2e 20 20 0a 0a 49 | 66 20 79 6f 75 20 6f 70 |ry. ..I|f you op|
|00002340| 74 20 66 6f 72 20 4e 4e | 54 50 2c 20 45 45 50 21 |t for NN|TP, EEP!|
|00002350| 20 77 69 6c 6c 20 72 65 | 71 75 69 72 65 20 61 63 | will re|quire ac|
|00002360| 63 65 73 73 20 74 6f 20 | 74 68 65 20 73 6f 75 72 |cess to |the sour|
|00002370| 63 65 20 63 6f 64 65 0a | 66 6f 72 20 79 6f 75 72 |ce code.|for your|
|00002380| 20 4e 4e 54 50 20 63 6c | 69 65 6e 74 20 6c 69 62 | NNTP cl|ient lib|
|00002390| 72 61 72 79 2c 20 61 73 | 20 77 65 6c 6c 20 61 73 |rary, as| well as|
|000023a0| 20 61 20 72 65 66 65 72 | 65 6e 63 65 20 74 6f 20 | a refer|ence to |
|000023b0| 74 68 65 20 4e 4e 54 50 | 0a 63 6c 69 65 6e 74 20 |the NNTP|.client |
|000023c0| 6c 69 62 72 61 72 79 20 | 6f 62 6a 65 63 74 20 66 |library |object f|
|000023d0| 69 6c 65 20 77 68 65 6e | 20 6c 69 6e 6b 69 6e 67 |ile when| linking|
|000023e0| 2e 0a 0a 54 68 65 20 66 | 6f 72 6d 61 74 20 6f 66 |...The f|ormat of|
|000023f0| 20 74 68 65 20 6e 65 77 | 73 67 72 6f 75 70 73 20 | the new|sgroups |
|00002400| 61 6e 64 20 6e 65 77 73 | 6c 6f 63 61 6c 20 66 69 |and news|local fi|
|00002410| 6c 65 73 20 69 73 20 76 | 65 72 79 20 73 69 6d 70 |les is v|ery simp|
|00002420| 6c 65 3a 0a 0a 6e 65 77 | 73 2e 67 72 6f 75 70 2e |le:..new|s.group.|
|00002430| 6e 61 6d 65 20 64 65 73 | 63 72 69 70 74 69 6f 6e |name des|cription|
|00002440| 20 61 6c 6c 20 6f 6e 20 | 6f 6e 65 20 6c 69 6e 65 | all on |one line|
|00002450| 0a 0a 54 68 65 20 66 69 | 72 73 74 20 73 70 61 63 |..The fi|rst spac|
|00002460| 65 20 6f 72 20 74 61 62 | 20 69 73 20 74 68 65 20 |e or tab| is the |
|00002470| 73 65 70 61 72 61 74 6f | 72 2e 0a 0a 45 64 69 74 |separato|r...Edit|
|00002480| 20 74 68 65 20 6d 61 6b | 65 66 69 6c 65 20 74 6f | the mak|efile to|
|00002490| 20 73 65 74 20 79 6f 75 | 72 20 70 72 65 66 65 72 | set you|r prefer|
|000024a0| 65 6e 63 65 73 20 66 6f | 72 20 63 6f 6d 70 69 6c |ences fo|r compil|
|000024b0| 65 72 2c 20 74 68 65 6e | 0a 72 75 6e 20 60 60 6d |er, then|.run ``m|
|000024c0| 61 6b 65 27 27 2e 20 20 | 45 45 50 21 20 69 73 20 |ake''. |EEP! is |
|000024d0| 73 68 69 70 70 65 64 20 | 77 69 74 68 20 61 20 6d |shipped |with a m|
|000024e0| 61 6b 65 66 69 6c 65 20 | 66 6f 72 20 44 4f 53 20 |akefile |for DOS |
|000024f0| 61 6e 64 20 55 4e 49 58 | 2e 0a 54 68 65 20 44 4f |and UNIX|..The DO|
|00002500| 53 20 76 65 72 73 69 6f | 6e 20 69 73 20 6e 6f 74 |S versio|n is not|
|00002510| 20 79 65 74 20 73 75 70 | 70 6f 72 74 65 64 20 77 | yet sup|ported w|
|00002520| 69 74 68 20 57 61 66 66 | 6c 65 3b 20 69 74 27 73 |ith Waff|le; it's|
|00002530| 20 6d 61 69 6e 6c 79 20 | 75 73 65 64 0a 62 65 63 | mainly |used.bec|
|00002540| 61 75 73 65 20 49 20 77 | 72 69 74 65 20 61 6e 64 |ause I w|rite and|
|00002550| 20 74 65 73 74 20 45 45 | 50 21 20 75 6e 64 65 72 | test EE|P! under|
|00002560| 20 44 4f 53 2c 20 62 65 | 63 61 75 73 65 20 49 20 | DOS, be|cause I |
|00002570| 64 6f 6e 27 74 20 68 61 | 76 65 20 55 4e 49 58 0a |don't ha|ve UNIX.|
|00002580| 61 74 20 68 6f 6d 65 20 | 79 65 74 2e 20 20 0a 0a |at home |yet. ..|
|00002590| 49 20 68 61 76 65 20 74 | 72 69 65 64 20 74 6f 20 |I have t|ried to |
|000025a0| 6d 61 6b 65 20 74 68 65 | 20 63 6f 64 65 20 72 65 |make the| code re|
|000025b0| 6c 61 74 69 76 65 6c 79 | 20 70 6f 72 74 61 62 6c |latively| portabl|
|000025c0| 65 2e 20 20 49 74 20 69 | 73 20 6b 6e 6f 77 6e 20 |e. It i|s known |
|000025d0| 74 6f 0a 63 6f 6d 70 69 | 6c 65 20 28 61 66 74 65 |to.compi|le (afte|
|000025e0| 72 20 61 20 74 77 65 61 | 6b 20 6f 66 20 74 68 65 |r a twea|k of the|
|000025f0| 20 6d 61 6b 65 66 69 6c | 65 29 20 6f 6e 20 48 50 | makefil|e) on HP|
|00002600| 2d 55 58 2c 20 53 75 6e | 4f 53 2c 20 43 6f 68 65 |-UX, Sun|OS, Cohe|
|00002610| 72 65 6e 74 20 33 2e 30 | 2c 0a 41 54 26 54 20 53 |rent 3.0|,.AT&T S|
|00002620| 79 73 74 65 6d 20 56 2e | 33 2c 20 49 53 43 20 55 |ystem V.|3, ISC U|
|00002630| 4e 49 58 2c 20 53 43 4f | 20 55 4e 49 58 2c 20 4c |NIX, SCO| UNIX, L|
|00002640| 69 6e 75 78 20 61 6e 64 | 20 76 61 72 69 6f 75 73 |inux and| various|
|00002650| 20 6f 74 68 65 72 73 2e | 20 20 0a 50 6c 65 61 73 | others.| .Pleas|
|00002660| 65 20 73 65 6e 64 20 6d | 65 20 63 6f 6e 74 65 78 |e send m|e contex|
|00002670| 74 20 64 69 66 66 73 20 | 66 6f 72 20 61 6e 79 20 |t diffs |for any |
|00002680| 63 68 61 6e 67 65 73 20 | 79 6f 75 27 64 20 6c 69 |changes |you'd li|
|00002690| 6b 65 0a 74 6f 20 73 75 | 67 67 65 73 74 20 28 6f |ke.to su|ggest (o|
|000026a0| 72 20 62 75 67 73 2c 20 | 6f 66 20 77 68 69 63 68 |r bugs, |of which|
|000026b0| 20 74 68 65 72 65 20 61 | 72 65 20 73 74 69 6c 6c | there a|re still|
|000026c0| 20 61 20 66 65 77 29 2e | 0a 0a 46 6f 72 20 74 68 | a few).|..For th|
|000026d0| 6f 73 65 20 77 69 74 68 | 20 65 61 72 6c 79 20 53 |ose with| early S|
|000026e0| 75 6e 20 4f 53 20 76 61 | 72 69 61 6e 74 73 20 28 |un OS va|riants (|
|000026f0| 70 72 69 6f 72 20 74 6f | 20 53 6f 6c 61 72 69 73 |prior to| Solaris|
|00002700| 2c 20 77 68 69 63 68 20 | 64 65 63 69 64 65 64 20 |, which |decided |
|00002710| 74 6f 0a 64 6f 20 53 59 | 53 56 20 70 72 6f 70 65 |to.do SY|SV prope|
|00002720| 72 6c 79 29 2c 20 6d 61 | 74 74 61 69 72 40 64 73 |rly), ma|ttair@ds|
|00002730| 36 32 2e 73 79 6e 65 72 | 63 6f 6d 2e 68 6f 75 6e |62.syner|com.houn|
|00002740| 69 78 2e 6f 72 67 20 28 | 43 68 61 72 6c 65 73 20 |ix.org (|Charles |
|00002750| 4d 61 74 74 61 69 72 29 | 20 77 72 69 74 65 73 3a |Mattair)| writes:|
|00002760| 0a 0a 3e 20 53 75 6e 2d | 6f 73 20 69 73 20 6d 6f |..> Sun-|os is mo|
|00002770| 73 74 6c 79 20 61 20 42 | 53 44 20 64 65 72 69 76 |stly a B|SD deriv|
|00002780| 61 74 69 76 65 20 77 69 | 74 68 20 74 68 65 0a 3e |ative wi|th the.>|
|00002790| 20 62 72 61 69 6e 20 64 | 65 61 64 20 42 53 44 20 | brain d|ead BSD |
|000027a0| 63 75 72 73 65 73 20 61 | 73 20 69 74 73 20 64 65 |curses a|s its de|
|000027b0| 66 61 75 6c 74 20 6c 69 | 62 72 61 72 69 65 73 20 |fault li|braries |
|000027c0| 61 6e 64 20 69 6e 63 6c | 75 64 65 20 66 69 6c 65 |and incl|ude file|
|000027d0| 73 2e 20 20 48 6f 77 65 | 76 65 72 2c 0a 3e 20 74 |s. Howe|ver,.> t|
|000027e0| 68 65 20 53 59 53 56 20 | 76 61 72 69 61 6e 74 20 |he SYSV |variant |
|000027f0| 69 73 20 61 72 6f 75 6e | 64 20 75 6e 64 65 72 20 |is aroun|d under |
|00002800| 2f 75 73 72 2f 35 62 69 | 6e 2f 2e 2e 2e 20 61 6e |/usr/5bi|n/... an|
|00002810| 64 20 69 66 20 79 6f 75 | 20 6c 69 6e 6b 20 77 69 |d if you| link wi|
|00002820| 74 68 0a 3e 20 2f 75 73 | 72 2f 35 62 69 6e 2f 63 |th.> /us|r/5bin/c|
|00002830| 63 2c 20 79 6f 75 20 61 | 75 74 6f 6d 61 67 69 63 |c, you a|utomagic|
|00002840| 61 6c 6c 79 20 67 65 74 | 20 53 59 53 56 20 63 75 |ally get| SYSV cu|
|00002850| 72 73 65 73 20 61 6e 64 | 20 69 74 73 20 61 73 73 |rses and| its ass|
|00002860| 6f 63 69 61 74 65 64 20 | 69 6e 63 6c 75 64 65 0a |ociated |include.|
|00002870| 3e 20 66 69 6c 65 73 2e | 0a 0a 4f 68 2c 20 61 6e |> files.|..Oh, an|
|00002880| 64 20 66 6f 72 20 74 68 | 6f 73 65 20 77 68 6f 20 |d for th|ose who |
|00002890| 61 72 65 20 77 6f 6e 64 | 65 72 69 6e 67 3a 20 22 |are wond|ering: "|
|000028a0| 57 68 79 20 63 61 6c 6c | 20 69 74 20 45 45 50 21 |Why call| it EEP!|
|000028b0| 22 3f 2e 20 20 4f 6e 65 | 20 75 73 65 72 0a 68 61 |"?. One| user.ha|
|000028c0| 73 20 73 75 67 67 65 73 | 74 65 64 20 69 74 20 73 |s sugges|ted it s|
|000028d0| 6f 75 6e 64 73 20 6c 69 | 6b 65 20 74 68 65 20 6e |ounds li|ke the n|
|000028e0| 6f 69 73 65 20 61 20 73 | 6d 61 6c 6c 20 66 75 72 |oise a s|mall fur|
|000028f0| 72 79 20 61 6e 69 6d 61 | 6c 20 6d 69 67 68 74 20 |ry anima|l might |
|00002900| 6d 61 6b 65 2e 0a 43 68 | 65 63 6b 20 6f 75 74 20 |make..Ch|eck out |
|00002910| 53 6f 6c 20 4c 69 62 65 | 73 27 20 65 78 63 65 6c |Sol Libe|s' excel|
|00002920| 6c 65 6e 74 20 62 6f 6f | 6b 2c 20 60 60 4c 69 66 |lent boo|k, ``Lif|
|00002930| 65 20 57 69 74 68 20 55 | 4e 49 58 27 27 2e 20 20 |e With U|NIX''. |
|00002940| 54 68 65 72 65 0a 69 73 | 20 61 20 72 65 66 65 72 |There.is| a refer|
|00002950| 65 6e 63 65 20 69 6e 20 | 74 68 65 72 65 20 74 6f |ence in |there to|
|00002960| 20 61 6e 20 61 73 70 65 | 63 74 20 6f 66 20 55 6e | an aspe|ct of Un|
|00002970| 69 46 6f 72 75 6d 20 63 | 6f 6e 66 65 72 65 6e 63 |iForum c|onferenc|
|00002980| 65 73 20 69 6e 20 4e 65 | 77 0a 5a 65 61 6c 61 6e |es in Ne|w.Zealan|
|00002990| 64 2c 20 61 6e 64 20 74 | 68 65 20 74 79 70 65 73 |d, and t|he types|
|000029a0| 20 6f 66 20 6a 6f 6b 65 | 73 20 66 6f 75 6e 64 20 | of joke|s found |
|000029b0| 74 68 65 72 65 2e 20 20 | 54 68 65 6e 20 63 6f 6e |there. |Then con|
|000029c0| 73 69 64 65 72 20 74 68 | 61 74 20 6f 6e 65 0a 63 |sider th|at one.c|
|000029d0| 61 6e 20 73 74 61 72 74 | 20 61 20 63 6f 6d 6d 61 |an start| a comma|
|000029e0| 6e 64 20 62 79 20 70 72 | 65 66 69 78 69 6e 67 20 |nd by pr|efixing |
|000029f0| 69 74 20 77 69 74 68 20 | 74 68 65 20 6e 61 6d 65 |it with |the name|
|00002a00| 20 6f 66 20 74 68 65 20 | 73 68 65 6c 6c 20 74 6f | of the |shell to|
|00002a10| 0a 65 78 65 63 75 74 65 | 2c 20 65 2e 67 2e 3a 0a |.execute|, e.g.:.|
|00002a20| 09 73 68 20 65 65 70 0a | 0a 3c 62 61 61 61 61 68 |.sh eep.|.<baaaah|
|00002a30| 21 3e 0a 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0a 54 |!>.-----|------.T|
|00002a40| 68 65 20 60 60 54 6f 20 | 44 6f 27 27 20 6c 69 73 |he ``To |Do'' lis|
|00002a50| 74 3a 0a 0a 45 45 50 27 | 73 20 75 73 65 20 6f 66 |t:..EEP'|s use of|
|00002a60| 20 4e 4e 54 50 20 6e 65 | 65 64 73 20 74 6f 20 62 | NNTP ne|eds to b|
|00002a70| 65 20 69 6d 70 72 6f 76 | 65 64 2c 20 74 6f 20 68 |e improv|ed, to h|
|00002a80| 61 6e 64 6c 65 20 73 6f | 6d 65 20 6f 66 20 74 68 |andle so|me of th|
|00002a90| 65 20 0a 64 69 66 66 65 | 72 65 6e 63 65 73 20 62 |e .diffe|rences b|
|00002aa0| 65 74 77 65 65 6e 20 49 | 4e 4e 44 20 61 6e 64 20 |etween I|NND and |
|00002ab0| 4e 4e 54 50 20 77 68 65 | 6e 20 75 73 65 64 20 61 |NNTP whe|n used a|
|00002ac0| 73 20 61 20 6e 65 77 73 | 20 73 6f 75 72 63 65 20 |s a news| source |
|00002ad0| 6f 72 0a 73 69 6e 6b 2e | 20 20 0a 0a 57 68 65 6e |or.sink.| ..When|
|00002ae0| 20 4e 4e 54 50 20 69 73 | 20 75 73 65 64 20 74 6f | NNTP is| used to|
|00002af0| 20 67 65 74 20 74 68 65 | 20 6e 65 77 73 67 72 6f | get the| newsgro|
|00002b00| 75 70 73 2c 20 74 68 65 | 20 6e 65 77 73 6c 6f 63 |ups, the| newsloc|
|00002b10| 61 6c 20 6d 61 79 20 73 | 74 69 6c 6c 0a 62 65 20 |al may s|till.be |
|00002b20| 75 73 65 66 75 6c 2e 0a | 0a 57 72 69 74 65 20 6f |useful..|.Write o|
|00002b30| 75 74 20 66 69 6c 65 20 | 66 6f 72 20 75 73 65 20 |ut file |for use |
|00002b40| 77 69 74 68 20 64 79 6e | 61 66 65 65 64 2e 0a 0a |with dyn|afeed...|
|00002b50| 53 6f 6d 65 20 68 6f 6f | 6b 73 20 61 72 65 20 70 |Some hoo|ks are p|
|00002b60| 72 65 73 65 6e 74 20 74 | 6f 20 61 6c 6c 6f 77 20 |resent t|o allow |
|00002b70| 74 68 65 20 72 6f 6f 74 | 20 75 73 65 72 20 74 6f |the root| user to|
|00002b80| 20 6d 6f 64 69 66 79 20 | 74 68 65 0a 61 63 74 69 | modify |the.acti|
|00002b90| 76 65 20 66 69 6c 65 2e | 20 20 54 68 69 73 20 77 |ve file.| This w|
|00002ba0| 69 6c 6c 20 62 65 20 61 | 20 6c 61 74 65 72 20 61 |ill be a| later a|
|00002bb0| 64 64 69 74 69 6f 6e 2c | 20 61 6c 6f 6e 67 20 77 |ddition,| along w|
|00002bc0| 69 74 68 20 70 6f 73 73 | 69 62 6c 65 0a 65 64 69 |ith poss|ible.edi|
|00002bd0| 74 69 6e 67 20 6f 66 20 | 74 68 65 20 6e 65 77 73 |ting of |the news|
|00002be0| 67 72 6f 75 70 73 20 66 | 69 6c 65 20 74 6f 20 61 |groups f|ile to a|
|00002bf0| 64 64 20 64 65 73 63 72 | 69 70 74 69 6f 6e 73 2e |dd descr|iptions.|
|00002c00| 0a 0a 4f 6e 65 20 61 64 | 64 69 74 69 6f 6e 20 74 |..One ad|dition t|
|00002c10| 68 61 74 20 68 61 73 20 | 62 65 65 6e 20 70 6c 61 |hat has |been pla|
|00002c20| 6e 6e 65 64 20 73 69 6e | 63 65 20 74 68 65 20 67 |nned sin|ce the g|
|00002c30| 65 72 6d 69 6e 61 74 69 | 6f 6e 20 6f 66 20 65 65 |erminati|on of ee|
|00002c40| 70 0a 68 61 73 20 62 65 | 65 6e 20 74 6f 20 70 72 |p.has be|en to pr|
|00002c50| 65 73 65 6e 74 20 74 68 | 65 20 6e 65 77 73 67 72 |esent th|e newsgr|
|00002c60| 6f 75 70 73 20 69 6e 20 | 61 20 68 69 65 72 61 72 |oups in |a hierar|
|00002c70| 63 68 69 63 61 6c 20 73 | 74 72 75 63 74 75 72 65 |chical s|tructure|
|00002c80| 2e 0a 43 75 72 72 65 6e | 74 6c 79 20 74 68 65 72 |..Curren|tly ther|
|00002c90| 65 20 61 72 65 20 63 6c | 6f 73 65 20 74 6f 20 33 |e are cl|ose to 3|
|00002ca0| 2c 30 30 30 20 6e 65 77 | 73 67 72 6f 75 70 73 20 |,000 new|sgroups |
|00002cb0| 28 69 6e 20 4e 65 77 20 | 5a 65 61 6c 61 6e 64 29 |(in New |Zealand)|
|00002cc0| 20 61 6e 64 0a 74 68 69 | 73 20 69 73 20 67 72 6f | and.thi|s is gro|
|00002cd0| 77 69 6e 67 20 66 61 73 | 74 2e 20 20 48 61 76 69 |wing fas|t. Havi|
|00002ce0| 6e 67 20 6f 6e 65 20 6c | 6f 6e 67 20 6c 69 73 74 |ng one l|ong list|
|00002cf0| 2c 20 68 6f 77 65 76 65 | 72 20 79 6f 75 20 73 63 |, howeve|r you sc|
|00002d00| 72 6f 6c 6c 0a 74 68 72 | 6f 75 67 68 20 69 74 2c |roll.thr|ough it,|
|00002d10| 20 69 73 20 6e 6f 74 20 | 67 6f 6f 64 20 65 6e 6f | is not |good eno|
|00002d20| 75 67 68 20 66 6f 72 20 | 6e 65 77 65 72 20 75 73 |ugh for |newer us|
|00002d30| 65 72 73 2e 20 20 45 76 | 65 6e 74 75 61 6c 6c 79 |ers. Ev|entually|
|00002d40| 2c 20 65 65 70 0a 77 69 | 6c 6c 20 73 68 6f 77 20 |, eep.wi|ll show |
|00002d50| 61 6e 20 6f 70 65 6e 69 | 6e 67 20 6d 65 6e 75 20 |an openi|ng menu |
|00002d60| 6f 66 20 6a 75 73 74 20 | 74 68 65 20 74 6f 70 2d |of just |the top-|
|00002d70| 6c 65 76 65 6c 20 67 72 | 6f 75 70 73 20 28 69 2e |level gr|oups (i.|
|00002d80| 65 2e 20 6f 6e 65 73 0a | 77 69 74 68 20 6e 6f 74 |e. ones.|with not|
|00002d90| 20 22 2e 22 20 69 6e 20 | 74 68 65 69 72 20 6e 61 | "." in |their na|
|00002da0| 6d 65 29 2e 20 20 55 73 | 65 72 73 20 77 69 6c 6c |me). Us|ers will|
|00002db0| 20 74 68 65 6e 20 22 64 | 72 69 6c 6c 2d 64 6f 77 | then "d|rill-dow|
|00002dc0| 6e 22 20 74 6f 20 74 68 | 65 0a 6e 65 78 74 20 6c |n" to th|e.next l|
|00002dd0| 65 76 65 6c 2c 20 61 6e | 64 20 74 68 75 73 20 77 |evel, an|d thus w|
|00002de0| 69 6c 6c 20 73 65 65 20 | 74 68 65 20 68 69 65 72 |ill see |the hier|
|00002df0| 61 72 63 68 79 20 61 73 | 20 61 6e 20 69 6e 76 65 |archy as| an inve|
|00002e00| 72 74 65 64 20 74 72 65 | 65 2e 20 20 41 73 0a 61 |rted tre|e. As.a|
|00002e10| 20 70 72 65 6c 75 64 65 | 20 74 6f 20 74 68 69 73 | prelude| to this|
|00002e20| 2c 20 61 6e 64 20 74 61 | 6b 69 6e 67 20 28 68 29 |, and ta|king (h)|
|00002e30| 20 69 6e 74 6f 20 61 63 | 63 6f 75 6e 74 2c 20 69 | into ac|count, i|
|00002e40| 74 20 73 65 65 6d 73 20 | 61 70 70 72 6f 70 72 69 |t seems |appropri|
|00002e50| 61 74 65 0a 74 6f 20 61 | 64 64 20 63 6f 64 65 20 |ate.to a|dd code |
|00002e60| 74 6f 20 74 61 6b 65 20 | 74 68 65 20 74 6f 70 2d |to take |the top-|
|00002e70| 6c 65 76 65 6c 20 6e 61 | 6d 65 73 20 73 65 70 61 |level na|mes sepa|
|00002e80| 72 61 74 65 6c 79 2c 20 | 61 6e 64 20 6e 6f 74 20 |rately, |and not |
|00002e90| 73 68 6f 77 0a 74 68 65 | 6d 20 69 6e 20 74 68 65 |show.the|m in the|
|00002ea0| 20 6d 61 69 6e 20 6c 69 | 73 74 2e 20 20 0a 0a 4d | main li|st. ..M|
|00002eb0| 6f 73 74 20 6f 66 20 74 | 68 65 20 74 6f 70 2d 6c |ost of t|he top-l|
|00002ec0| 65 76 65 6c 20 6e 61 6d | 65 73 20 6d 61 79 20 62 |evel nam|es may b|
|00002ed0| 65 20 66 6f 75 6e 64 20 | 69 6e 20 74 68 65 0a 2f |e found |in the./|
|00002ee0| 75 73 72 2f 6c 69 62 2f | 6e 65 77 73 2f 64 69 73 |usr/lib/|news/dis|
|00002ef0| 74 72 69 62 75 74 69 6f | 6e 73 20 66 69 6c 65 2c |tributio|ns file,|
|00002f00| 20 68 6f 77 65 76 65 72 | 20 6e 6f 74 20 61 6c 6c | however| not all|
|00002f10| 2e 20 20 46 6f 72 20 65 | 78 61 6d 70 6c 65 2c 0a |. For e|xample,.|
|00002f20| 74 68 65 72 65 20 61 72 | 65 20 73 6f 6d 65 20 6e |there ar|e some n|
|00002f30| 65 77 73 20 67 72 6f 75 | 70 73 20 77 68 69 63 68 |ews grou|ps which|
|00002f40| 20 68 61 76 65 20 61 20 | 73 69 6e 67 6c 65 20 6e | have a |single n|
|00002f50| 61 6d 65 2c 20 65 2e 67 | 2e 20 63 6f 6e 74 72 6f |ame, e.g|. contro|
|00002f60| 6c 2c 0a 6a 75 6e 6b 2e | 20 20 53 68 6f 75 6c 64 |l,.junk.| Should|
|00002f70| 20 74 68 65 73 65 20 62 | 65 20 73 68 6f 77 6e 20 | these b|e shown |
|00002f80| 61 74 20 61 6c 6c 3f 20 | 20 49 20 74 68 69 6e 6b |at all? | I think|
|00002f90| 20 73 6f 20 2d 2d 20 62 | 75 74 20 69 74 27 73 20 | so -- b|ut it's |
|00002fa0| 6e 6f 74 0a 61 70 70 72 | 6f 70 72 69 61 74 65 20 |not.appr|opriate |
|00002fb0| 74 6f 20 74 72 65 61 74 | 20 74 68 65 6d 20 61 73 |to treat| them as|
|00002fc0| 20 74 6f 70 20 6c 65 76 | 65 6c 73 2e 20 20 50 65 | top lev|els. Pe|
|00002fd0| 72 68 61 70 73 20 74 68 | 65 73 65 20 73 70 65 63 |rhaps th|ese spec|
|00002fe0| 69 61 6c 73 0a 63 6f 75 | 6c 64 20 62 65 20 6b 65 |ials.cou|ld be ke|
|00002ff0| 70 74 20 69 6e 20 6e 65 | 77 73 6c 6f 63 61 6c 20 |pt in ne|wslocal |
|00003000| 66 69 6c 65 2e 0a 0a 53 | 75 70 70 6f 72 74 20 66 |file...S|upport f|
|00003010| 6f 72 20 57 61 66 66 6c | 65 20 75 6e 64 65 72 20 |or Waffl|e under |
|00003020| 4d 53 2d 44 4f 53 2e 0a | 0a 4e 4e 54 50 20 74 6f |MS-DOS..|.NNTP to|
|00003030| 20 62 65 20 61 20 63 6f | 6d 6d 61 6e 64 2d 6c 69 | be a co|mmand-li|
|00003040| 6e 65 20 73 77 69 74 63 | 68 2e 0a 72 6f 70 72 69 |ne switc|h..ropri|
|00003050| 61 74 65 0a 74 6f 20 61 | 64 64 20 63 6f 64 65 20 |ate.to a|dd code |
|00003060| 74 6f 20 74 61 6b 65 20 | 74 68 65 20 74 6f 70 2d |to take |the top-|
|00003070| 6c 65 76 65 6c 20 6e 61 | 6d 65 73 20 73 65 70 61 |level na|mes sepa|
|00003080| 72 61 74 65 6c 79 2c 20 | 61 6e 64 20 6e 6f 74 20 |rately, |and not |
|00003090| 73 68 6f 77 0a 74 68 65 | 6d 20 69 6e 20 74 68 65 |show.the|m in the|
|000030a0| 20 6d 61 69 6e 20 6c 69 | 73 74 2e 20 20 0a 0a 4d | main li|st. ..M|
|000030b0| 6f 73 74 20 6f 66 20 74 | 68 65 20 74 6f 70 2d 6c |ost of t|he top-l|
|000030c0| 65 76 65 6c 20 6e 61 6d | 65 73 20 6d 61 79 20 62 |evel nam|es may b|
|000030d0| 65 20 66 6f 75 6e 64 20 | 69 6e 20 74 68 65 0a 2f |e found |in the./|
|000030e0| 75 73 72 2f 6c 69 62 2f | 6e 65 77 73 2f 64 69 73 |usr/lib/|news/dis|
|000030f0| 74 72 69 62 75 74 69 6f | 6e 73 20 66 69 6c 65 2c |tributio|ns file,|
|00003100| 20 68 6f 77 65 76 65 72 | 20 6e 6f 74 20 61 6c 6c | however| not all|
|00003110| 2e 20 20 46 6f 72 20 65 | 78 61 6d 70 6c 65 2c 0a |. For e|xample,.|
|00003120| 74 68 65 72 65 20 61 72 | 65 20 73 6f 6d 65 20 6e |there ar|e some n|
|00003130| 65 77 73 20 67 72 6f 75 | 70 73 20 77 68 69 63 68 |ews grou|ps which|
|00003140| 20 68 61 76 65 20 61 20 | 73 69 6e 67 6c 65 20 6e | have a |single n|
|00003150| 61 6d 65 2c 20 65 2e 67 | 2e 20 63 6f 6e 74 72 6f |ame, e.g|. contro|
|00003160| 6c 2c 0a 6a 75 6e 6b 2e | 20 20 53 68 6f 75 6c 64 |l,.junk.| Should|
|00003170| 20 74 68 65 73 65 20 62 | 65 20 73 68 6f 77 6e 20 | these b|e shown |
|00003180| 61 74 20 61 6c 6c 3f 20 | 20 49 20 74 68 69 6e 6b |at all? | I think|
|00003190| 20 73 6f 20 2d 2d 20 62 | 75 74 20 69 74 27 73 20 | so -- b|ut it's |
|000031a0| 6e 6f 74 0a 61 70 70 72 | 6f 70 72 69 61 74 65 20 |not.appr|opriate |
|000031b0| 74 6f 20 74 72 65 61 74 | 20 74 68 65 6d 20 61 73 |to treat| them as|
|000031c0| 20 74 6f 70 20 6c 65 76 | 65 6c 73 2e 20 20 50 65 | top lev|els. Pe|
|000031d0| 72 68 61 70 73 20 74 68 | 65 73 65 20 73 70 65 63 |rhaps th|ese spec|
|000031e0| 69 61 6c 73 0a 63 6f 75 | 6c 64 20 62 65 20 6b 65 |ials.cou|ld be ke|
|000031f0| 70 74 20 69 6e 20 6e 65 | 77 73 6c 6f 63 61 6c 20 |pt in ne|wslocal |
|00003200| 65 65 70 6d 61 69 6e 2e | 63 00 00 00 00 00 00 00 |eepmain.|c.......|
|00003210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003260| 00 00 00 00 30 30 30 30 | 36 34 34 00 30 30 30 30 |....0000|644.0000|
|00003270| 33 37 35 00 30 30 30 30 | 30 32 34 00 30 30 30 30 |375.0000|024.0000|
|00003280| 30 31 30 31 37 34 31 00 | 30 35 33 35 33 33 33 30 |0101741.|05353330|
|00003290| 33 34 36 00 30 30 31 33 | 30 32 37 00 30 00 00 00 |346.0013|027.0...|
|000032a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003300| 00 75 73 74 61 72 00 30 | 30 70 61 75 6c 00 00 00 |.ustar.0|0paul...|
|00003310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003320| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00003330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003340| 00 00 00 00 00 00 00 00 | 00 30 30 30 30 30 30 30 |........|.0000000|
|00003350| 00 30 30 30 30 30 30 30 | 00 00 00 00 00 00 00 00 |.0000000|........|
|00003360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003400| 2f 2a 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |/*------|--------|
|00003410| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003420| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003430| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003440| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0a 20 20 20 20 20 |--------|--. |
|00003450| 20 20 4e 61 6d 65 3a 20 | 65 65 70 6d 61 69 6e 2e | Name: |eepmain.|
|00003460| 63 0a 20 20 20 20 56 65 | 72 73 69 6f 6e 3a 20 31 |c. Ve|rsion: 1|
|00003470| 2e 39 0a 0a 54 68 69 73 | 20 70 72 6f 67 72 61 6d |.9..This| program|
|00003480| 20 6d 61 6b 65 73 20 69 | 74 20 65 61 73 69 65 72 | makes i|t easier|
|00003490| 20 66 6f 72 20 75 73 65 | 72 73 20 74 6f 20 63 68 | for use|rs to ch|
|000034a0| 61 6e 67 65 20 74 68 65 | 69 72 20 2e 6e 65 77 73 |ange the|ir .news|
|000034b0| 72 63 20 66 69 6c 65 2e | 20 20 0a 49 74 20 75 73 |rc file.| .It us|
|000034c0| 65 73 20 63 75 72 73 65 | 73 20 74 6f 20 69 6d 70 |es curse|s to imp|
|000034d0| 6c 65 6d 65 6e 74 20 61 | 20 73 69 6d 70 6c 65 20 |lement a| simple |
|000034e0| 65 64 69 74 6f 72 2c 20 | 77 68 69 63 68 20 61 6c |editor, |which al|
|000034f0| 6c 6f 77 73 20 75 73 65 | 72 73 20 74 6f 20 0a 6a |lows use|rs to .j|
|00003500| 6f 69 6e 20 6f 72 20 75 | 6e 6a 6f 69 6e 20 6e 65 |oin or u|njoin ne|
|00003510| 77 73 67 72 6f 75 70 73 | 2c 20 66 72 6f 6d 20 6f |wsgroups|, from o|
|00003520| 75 74 73 69 64 65 20 6f | 66 20 72 6e 20 6f 72 20 |utside o|f rn or |
|00003530| 74 72 6e 2e 0a 0a 20 20 | 20 20 20 41 75 74 68 6f |trn... | Autho|
|00003540| 72 3a 20 50 61 75 6c 20 | 47 69 6c 6c 69 6e 67 77 |r: Paul |Gillingw|
|00003550| 61 74 65 72 2c 20 70 61 | 75 6c 40 61 63 74 72 69 |ater, pa|ul@actri|
|00003560| 78 2e 63 6f 2e 61 74 0a | 0a 55 73 61 67 65 3a 0a |x.co.at.|.Usage:.|
|00003570| 20 20 20 20 65 65 70 20 | 5b 2d 64 5d 20 5b 2d 6e | eep |[-d] [-n|
|00003580| 5d 20 5b 2d 70 5d 20 5b | 2d 76 5d 0a 0a 4f 70 74 |] [-p] [|-v]..Opt|
|00003590| 69 6f 6e 73 3a 0a 20 20 | 20 20 2d 64 3a 20 20 44 |ions:. | -d: D|
|000035a0| 65 6c 65 74 65 20 75 6e | 73 75 62 73 63 72 69 62 |elete un|subscrib|
|000035b0| 65 64 20 6e 65 77 73 67 | 72 6f 75 70 73 0a 20 20 |ed newsg|roups. |
|000035c0| 20 20 2d 6e 3a 20 20 44 | 69 73 61 62 6c 65 20 4e | -n: D|isable N|
|000035d0| 4e 54 50 20 63 6f 6e 6e | 65 63 74 69 6f 6e 0a 20 |NTP conn|ection. |
|000035e0| 20 20 20 2d 70 3a 20 20 | 55 73 65 20 61 20 74 65 | -p: |Use a te|
|000035f0| 72 73 65 20 70 6f 69 6e | 74 65 72 20 6f 6e 20 73 |rse poin|ter on s|
|00003600| 63 72 65 65 6e 20 69 6e | 73 74 65 61 64 20 6f 66 |creen in|stead of|
|00003610| 20 61 20 62 61 72 0a 20 | 20 20 20 2d 76 3a 20 20 | a bar. | -v: |
|00003620| 56 65 72 62 6f 73 65 20 | 6d 6f 64 65 2c 20 74 65 |Verbose |mode, te|
|00003630| 6c 6c 73 20 79 6f 75 20 | 6d 6f 72 65 20 64 75 72 |lls you |more dur|
|00003640| 69 6e 67 20 73 74 61 72 | 74 75 70 0a 0a 2d 2d 2d |ing star|tup..---|
|00003650| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003660| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003670| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003680| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003690| 2d 2d 2d 2d 2d 2a 2f 0a | 0a 23 69 6e 63 6c 75 64 |-----*/.|.#includ|
|000036a0| 65 20 3c 73 74 64 69 6f | 2e 68 3e 0a 23 69 6e 63 |e <stdio|.h>.#inc|
|000036b0| 6c 75 64 65 20 3c 73 74 | 72 69 6e 67 2e 68 3e 0a |lude <st|ring.h>.|
|000036c0| 23 69 6e 63 6c 75 64 65 | 20 3c 63 74 79 70 65 2e |#include| <ctype.|
|000036d0| 68 3e 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 69 67 |h>.#incl|ude <sig|
|000036e0| 6e 61 6c 2e 68 3e 0a 0a | 23 69 66 64 65 66 20 55 |nal.h>..|#ifdef U|
|000036f0| 4e 49 58 0a 23 69 6e 63 | 6c 75 64 65 20 3c 66 63 |NIX.#inc|lude <fc|
|00003700| 6e 74 6c 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |ntl.h>.#|include |
|00003710| 3c 74 65 72 6d 69 6f 2e | 68 3e 20 20 2f 2a 20 53 |<termio.|h> /* S|
|00003720| 6f 6d 65 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 63 |ome vers|ion of c|
|00003730| 75 72 73 65 73 2e 68 20 | 77 69 6c 6c 20 69 6e 63 |urses.h |will inc|
|00003740| 6c 75 64 65 20 74 68 69 | 73 0a 20 20 20 20 20 20 |lude thi|s. |
|00003750| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003760| 2a 20 61 75 74 6f 6d 61 | 74 69 63 61 6c 6c 79 2c |* automa|tically,|
|00003770| 20 6c 65 61 64 69 6e 67 | 20 74 6f 20 64 75 70 6c | leading| to dupl|
|00003780| 69 63 61 74 69 6f 6e 2e | 20 20 2a 2f 0a 23 65 6e |ication.| */.#en|
|00003790| 64 69 66 20 2f 2a 20 55 | 4e 49 58 20 2a 2f 0a 0a |dif /* U|NIX */..|
|000037a0| 23 69 66 64 65 66 20 41 | 4e 53 49 0a 23 69 6e 63 |#ifdef A|NSI.#inc|
|000037b0| 6c 75 64 65 20 3c 73 74 | 64 6c 69 62 2e 68 3e 0a |lude <st|dlib.h>.|
|000037c0| 23 65 6c 73 65 0a 23 64 | 65 66 69 6e 65 20 76 6f |#else.#d|efine vo|
|000037d0| 69 64 20 69 6e 74 0a 65 | 78 74 65 72 6e 20 63 68 |id int.e|xtern ch|
|000037e0| 61 72 20 2a 6d 61 6c 6c | 6f 63 28 29 3b 0a 65 78 |ar *mall|oc();.ex|
|000037f0| 74 65 72 6e 20 63 68 61 | 72 20 2a 67 65 74 65 6e |tern cha|r *geten|
|00003800| 76 28 29 3b 0a 23 65 6e | 64 69 66 20 2f 2a 20 41 |v();.#en|dif /* A|
|00003810| 4e 53 49 20 2a 2f 0a 0a | 23 69 6e 63 6c 75 64 65 |NSI */..|#include|
|00003820| 20 22 65 65 70 2e 68 22 | 0a 0a 2f 2a 20 53 6f 6d | "eep.h"|../* Som|
|00003830| 65 20 66 75 6e 63 74 69 | 6f 6e 20 64 65 66 69 6e |e functi|on defin|
|00003840| 69 74 69 6f 6e 73 20 2a | 2f 0a 0a 65 78 74 65 72 |itions *|/..exter|
|00003850| 6e 20 76 6f 69 64 20 20 | 20 20 6e 65 77 73 6d 61 |n void | newsma|
|00003860| 69 6e 28 29 3b 0a 65 78 | 74 65 72 6e 20 76 6f 69 |in();.ex|tern voi|
|00003870| 64 20 20 20 20 2a 77 61 | 6c 6c 6f 70 28 29 3b 20 |d *wa|llop(); |
|00003880| 20 2f 2a 20 65 65 70 6d | 69 73 63 2e 63 20 2d 2d | /* eepm|isc.c --|
|00003890| 20 6d 61 6c 6c 6f 63 28 | 29 20 72 65 70 6c 61 63 | malloc(|) replac|
|000038a0| 65 6d 65 6e 74 20 2a 2f | 0a 69 6e 74 20 20 20 20 |ement */|.int |
|000038b0| 20 20 20 20 20 20 20 20 | 72 65 61 64 5f 61 63 74 | |read_act|
|000038c0| 69 76 65 5f 66 69 6c 65 | 28 29 3b 20 20 2f 2a 20 |ive_file|(); /* |
|000038d0| 66 6f 72 77 61 72 64 20 | 72 65 66 65 72 65 6e 63 |forward |referenc|
|000038e0| 65 20 2a 2f 0a 23 69 66 | 64 65 66 20 4e 4e 54 50 |e */.#if|def NNTP|
|000038f0| 0a 69 6e 74 20 20 20 20 | 20 20 20 20 20 20 20 20 |.int | |
|00003900| 72 65 61 64 5f 61 63 74 | 69 76 65 5f 6e 6e 74 70 |read_act|ive_nntp|
|00003910| 28 29 3b 20 20 2f 2a 20 | 66 6f 72 77 61 72 64 20 |(); /* |forward |
|00003920| 72 65 66 65 72 65 6e 63 | 65 20 2a 2f 0a 23 65 6e |referenc|e */.#en|
|00003930| 64 69 66 20 2f 2a 20 4e | 4e 54 50 20 2a 2f 0a 0a |dif /* N|NTP */..|
|00003940| 63 68 61 72 20 20 20 20 | 62 75 66 66 65 72 5b 42 |char |buffer[B|
|00003950| 55 46 53 49 5a 45 5d 2c | 20 2f 2a 20 67 65 6e 65 |UFSIZE],| /* gene|
|00003960| 72 61 6c 20 70 75 72 70 | 6f 73 65 20 6c 69 6e 65 |ral purp|ose line|
|00003970| 20 62 75 66 66 65 72 20 | 2a 2f 0a 20 20 20 20 20 | buffer |*/. |
|00003980| 20 20 20 74 6d 70 5b 42 | 55 46 53 49 5a 45 5d 2c | tmp[B|UFSIZE],|
|00003990| 0a 20 20 20 20 20 20 20 | 20 73 5f 68 69 5b 33 30 |. | s_hi[30|
|000039a0| 5d 2c 20 20 20 20 20 20 | 20 2f 2a 20 73 74 72 69 |], | /* stri|
|000039b0| 6e 67 73 20 66 6f 72 20 | 6e 75 6d 62 65 72 73 20 |ngs for |numbers |
|000039c0| 2a 2f 0a 20 20 20 20 20 | 20 20 20 73 5f 6c 6f 5b |*/. | s_lo[|
|000039d0| 33 30 5d 2c 20 20 20 20 | 20 20 20 2f 2a 20 73 74 |30], | /* st|
|000039e0| 72 69 6e 67 73 20 66 6f | 72 20 6e 75 6d 62 65 72 |rings fo|r number|
|000039f0| 73 20 2a 2f 0a 20 20 20 | 20 20 20 20 20 73 5f 66 |s */. | s_f|
|00003a00| 6c 61 67 5b 38 5d 3b 0a | 63 68 61 72 20 20 20 20 |lag[8];.|char |
|00003a10| 74 5f 73 74 61 74 75 73 | 2c 20 20 20 20 20 20 20 |t_status|, |
|00003a20| 2f 2a 20 66 72 6f 6d 20 | 2e 6e 65 77 73 72 63 20 |/* from |.newsrc |
|00003a30| 66 69 6c 65 20 2a 2f 0a | 20 20 20 20 20 20 20 20 |file */.| |
|00003a40| 74 5f 66 6c 61 67 3b 20 | 20 20 20 20 20 20 20 20 |t_flag; | |
|00003a50| 2f 2a 20 66 72 6f 6d 20 | 61 63 74 69 76 65 20 66 |/* from |active f|
|00003a60| 69 6c 65 20 2a 2f 0a 63 | 68 61 72 20 20 20 20 2a |ile */.c|har *|
|00003a70| 70 74 72 3b 20 20 20 20 | 20 20 20 20 20 20 20 2f |ptr; | /|
|00003a80| 2a 20 67 65 6e 65 72 61 | 6c 20 70 75 72 70 6f 73 |* genera|l purpos|
|00003a90| 65 20 70 6f 69 6e 74 65 | 72 20 2a 2f 0a 63 68 61 |e pointe|r */.cha|
|00003aa0| 72 09 2a 62 6f 67 5f 6d | 73 67 20 3d 20 22 42 6f |r.*bog_m|sg = "Bo|
|00003ab0| 67 75 73 20 6e 65 77 73 | 67 72 6f 75 70 20 28 6e |gus news|group (n|
|00003ac0| 6f 74 20 69 6e 20 61 63 | 74 69 76 65 20 66 69 6c |ot in ac|tive fil|
|00003ad0| 65 29 22 3b 0a 63 68 61 | 72 09 2a 68 6f 6d 65 20 |e)";.cha|r.*home |
|00003ae0| 3d 20 27 5c 30 27 3b 09 | 2f 2a 20 68 6f 6d 65 20 |= '\0';.|/* home |
|00003af0| 64 69 72 65 63 74 6f 72 | 79 20 2a 2f 0a 0a 75 6e |director|y */..un|
|00003b00| 73 69 67 6e 65 64 20 69 | 6e 74 20 20 20 20 20 0a |signed i|nt .|
|00003b10| 20 20 20 20 20 20 20 20 | 75 69 64 20 3d 20 30 2c | |uid = 0,|
|00003b20| 20 20 20 20 20 20 20 20 | 2f 2a 20 72 65 61 6c 20 | |/* real |
|00003b30| 75 73 65 72 20 69 64 20 | 2a 2f 0a 20 20 20 20 20 |user id |*/. |
|00003b40| 20 20 20 70 69 64 20 3d | 20 30 3b 20 20 20 20 20 | pid =| 0; |
|00003b50| 20 20 20 2f 2a 20 70 72 | 6f 63 65 73 73 20 69 64 | /* pr|ocess id|
|00003b60| 20 2a 2f 0a 0a 69 6e 74 | 20 20 20 20 20 72 65 73 | */..int| res|
|00003b70| 75 6c 74 3b 20 20 20 20 | 20 20 20 20 20 20 20 20 |ult; | |
|00003b80| 20 20 20 20 20 2f 2a 20 | 66 6c 61 67 20 66 6f 72 | /* |flag for|
|00003b90| 20 73 65 61 72 63 68 69 | 6e 67 20 2a 2f 0a 69 6e | searchi|ng */.in|
|00003ba0| 74 20 20 20 20 20 65 65 | 70 6f 69 6e 74 20 3d 20 |t ee|point = |
|00003bb0| 30 3b 20 20 20 20 20 20 | 20 20 20 20 20 20 2f 2a |0; | /*|
|00003bc0| 20 66 6c 61 67 20 66 6f | 72 20 73 63 72 65 65 6e | flag fo|r screen|
|00003bd0| 20 70 6f 69 6e 74 65 72 | 20 74 79 70 65 20 2a 2f | pointer| type */|
|00003be0| 0a 69 6e 74 20 20 20 20 | 20 63 75 72 73 65 73 5f |.int | curses_|
|00003bf0| 6f 6b 20 3d 20 46 41 4c | 53 45 3b 20 20 20 20 20 |ok = FAL|SE; |
|00003c00| 20 2f 2a 20 68 61 73 20 | 63 75 72 73 65 73 20 62 | /* has |curses b|
|00003c10| 65 65 6e 20 75 73 65 64 | 20 79 65 74 3f 20 2a 2f |een used| yet? */|
|00003c20| 0a 69 6e 74 20 20 20 20 | 20 76 65 72 62 6f 73 65 |.int | verbose|
|00003c30| 20 3d 20 56 45 52 42 4f | 53 45 3b 09 2f 2a 20 76 | = VERBO|SE;./* v|
|00003c40| 65 72 62 6f 73 65 20 66 | 6c 61 67 20 74 6f 67 67 |erbose f|lag togg|
|00003c50| 6c 65 20 2a 2f 0a 69 6e | 74 20 20 20 20 20 64 65 |le */.in|t de|
|00003c60| 6c 5f 75 6e 73 75 62 20 | 3d 20 46 41 4c 53 45 3b |l_unsub |= FALSE;|
|00003c70| 20 20 20 20 20 20 2f 2a | 20 64 65 6c 65 74 65 20 | /*| delete |
|00003c80| 75 6e 73 75 62 73 63 72 | 69 62 65 64 20 6e 65 77 |unsubscr|ibed new|
|00003c90| 73 67 72 6f 75 70 73 3f | 20 2a 2f 0a 69 6e 74 20 |sgroups?| */.int |
|00003ca0| 20 20 20 20 77 61 72 6e | 69 6e 67 20 3d 20 46 41 | warn|ing = FA|
|00003cb0| 4c 53 45 3b 20 20 20 20 | 20 20 20 20 2f 2a 20 68 |LSE; | /* h|
|00003cc0| 61 76 65 20 77 61 72 6e | 69 6e 67 20 6d 65 73 73 |ave warn|ing mess|
|00003cd0| 61 67 65 73 20 62 65 65 | 6e 20 69 73 73 75 65 64 |ages bee|n issued|
|00003ce0| 3f 20 2a 2f 0a 0a 63 68 | 61 72 20 20 20 20 2a 6e |? */..ch|ar *n|
|00003cf0| 61 6d 65 2c 20 20 20 2f | 2a 20 70 6f 69 6e 74 65 |ame, /|* pointe|
|00003d00| 72 73 20 69 6e 74 6f 20 | 6c 69 6e 65 20 69 6e 20 |rs into |line in |
|00003d10| 61 63 74 69 76 65 20 66 | 69 6c 65 20 2a 2f 0a 20 |active f|ile */. |
|00003d20| 20 20 20 20 20 20 20 2a | 68 69 2c 0a 20 20 20 20 | *|hi,. |
|00003d30| 20 20 20 20 2a 6c 6f 2c | 0a 20 20 20 20 20 20 20 | *lo,|. |
|00003d40| 20 2a 66 6c 61 67 3b 0a | 0a 23 69 66 64 65 66 20 | *flag;.|.#ifdef |
|00003d50| 4e 4e 54 50 0a 69 6e 74 | 20 20 20 20 20 6e 6e 74 |NNTP.int| nnt|
|00003d60| 70 5f 6f 6b 20 3d 20 54 | 52 55 45 3b 0a 23 65 6e |p_ok = T|RUE;.#en|
|00003d70| 64 69 66 20 2f 2a 20 4e | 4e 54 50 20 2a 2f 0a 0a |dif /* N|NTP */..|
|00003d80| 46 49 4c 45 20 20 20 20 | 2a 66 6e 65 77 73 72 63 |FILE |*fnewsrc|
|00003d90| 2c 0a 20 20 20 20 20 20 | 20 20 2a 66 61 63 74 69 |,. | *facti|
|00003da0| 76 65 3b 0a 0a 73 74 72 | 75 63 74 20 20 61 63 74 |ve;..str|uct act|
|00003db0| 69 66 20 2a 61 63 74 5b | 4d 41 58 4c 49 4e 45 53 |if *act[|MAXLINES|
|00003dc0| 5d 3b 20 20 2f 2a 20 68 | 65 72 65 27 73 20 74 68 |]; /* h|ere's th|
|00003dd0| 65 20 6d 61 69 6e 20 61 | 72 72 61 79 20 2a 2f 0a |e main a|rray */.|
|00003de0| 73 74 72 75 63 74 20 20 | 61 63 74 69 66 20 2a 61 |struct |actif *a|
|00003df0| 70 74 72 3b 20 20 20 20 | 2f 2a 20 74 65 6d 70 6f |ptr; |/* tempo|
|00003e00| 72 61 72 79 20 70 6f 69 | 6e 74 65 72 20 2a 2f 0a |rary poi|nter */.|
|00003e10| 0a 2f 2a 20 54 6f 20 6d | 61 6b 65 20 6d 61 6c 6c |./* To m|ake mall|
|00003e20| 6f 63 28 29 20 66 61 73 | 74 65 72 2c 20 77 65 20 |oc() fas|ter, we |
|00003e30| 75 73 65 20 77 61 6c 6c | 6f 70 28 29 20 5b 73 65 |use wall|op() [se|
|00003e40| 65 20 65 65 70 6d 69 73 | 63 2e 63 5d 20 74 6f 0a |e eepmis|c.c] to.|
|00003e50| 20 2a 20 68 61 6e 64 6c | 65 20 6d 65 6d 6f 72 79 | * handl|e memory|
|00003e60| 2e 20 20 57 65 27 6c 6c | 20 72 65 6c 79 20 6f 6e |. We'll| rely on|
|00003e70| 20 77 61 6c 6c 6f 70 28 | 29 20 74 6f 20 73 74 6f | wallop(|) to sto|
|00003e80| 72 65 20 74 68 65 20 70 | 6f 69 6e 74 65 72 73 0a |re the p|ointers.|
|00003e90| 20 2a 20 73 6f 20 74 68 | 65 79 20 63 61 6e 20 62 | * so th|ey can b|
|00003ea0| 65 20 66 72 65 65 64 20 | 64 75 72 69 6e 67 20 63 |e freed |during c|
|00003eb0| 6c 65 61 6e 75 70 28 29 | 2e 20 20 57 61 6c 6c 6f |leanup()|. Wallo|
|00003ec0| 70 28 29 20 77 69 6c 6c | 20 75 73 65 0a 20 2a 20 |p() will| use. * |
|00003ed0| 62 75 66 66 65 72 5f 63 | 69 74 79 20 61 6e 64 20 |buffer_c|ity and |
|00003ee0| 6d 61 6c 6c 6f 63 5f 63 | 6f 75 6e 74 2e 0a 20 2a |malloc_c|ount.. *|
|00003ef0| 2f 0a 63 68 61 72 20 20 | 20 20 2a 62 75 66 66 65 |/.char | *buffe|
|00003f00| 72 5f 63 69 74 79 5b 4d | 41 58 42 55 46 53 5d 3b |r_city[M|AXBUFS];|
|00003f10| 0a 69 6e 74 20 20 20 20 | 20 6d 61 6c 6c 6f 63 5f |.int | malloc_|
|00003f20| 63 6f 75 6e 74 20 3d 20 | 30 3b 0a 0a 69 6e 74 20 |count = |0;..int |
|00003f30| 20 20 20 20 69 5f 61 63 | 74 69 76 65 2c 20 20 20 | i_ac|tive, |
|00003f40| 20 2f 2a 20 69 6e 64 65 | 78 20 69 6e 74 6f 20 61 | /* inde|x into a|
|00003f50| 63 74 69 66 20 61 72 72 | 61 79 73 20 2a 2f 0a 20 |ctif arr|ays */. |
|00003f60| 20 20 20 20 20 20 20 63 | 5f 61 63 74 69 76 65 2c | c|_active,|
|00003f70| 20 20 20 20 2f 2a 20 6e | 75 6d 62 65 72 20 6f 66 | /* n|umber of|
|00003f80| 20 65 6c 65 6d 65 6e 74 | 73 20 69 6e 20 61 63 74 | element|s in act|
|00003f90| 20 61 72 72 61 79 20 2a | 2f 0a 20 20 20 20 20 20 | array *|/. |
|00003fa0| 20 20 73 75 62 5f 63 6f | 75 6e 74 20 3d 20 30 2c | sub_co|unt = 0,|
|00003fb0| 20 20 20 2f 2a 20 63 6f | 75 6e 74 20 6f 66 20 73 | /* co|unt of s|
|00003fc0| 75 62 73 63 72 69 62 65 | 64 20 6e 65 77 73 67 72 |ubscribe|d newsgr|
|00003fd0| 6f 75 70 73 20 2a 2f 0a | 20 20 20 20 20 20 20 20 |oups */.| |
|00003fe0| 62 6f 67 5f 63 6f 75 6e | 74 3b 20 20 20 2f 2a 20 |bog_coun|t; /* |
|00003ff0| 63 6f 75 6e 74 20 6f 66 | 20 62 6f 67 75 73 20 6e |count of| bogus n|
|00004000| 65 77 73 67 72 6f 75 70 | 73 20 2a 2f 0a 69 6e 74 |ewsgroup|s */.int|
|00004010| 20 20 20 20 20 68 69 67 | 68 2c 6c 6f 77 2c 6d 69 | hig|h,low,mi|
|00004020| 64 3b 20 20 20 20 2f 2a | 20 75 73 65 64 20 66 6f |d; /*| used fo|
|00004030| 72 20 62 69 6e 61 72 79 | 20 63 68 6f 70 20 73 65 |r binary| chop se|
|00004040| 61 72 63 68 69 6e 67 20 | 2a 2f 0a 0a 2f 2a 20 54 |arching |*/../* T|
|00004050| 68 65 20 6c 65 76 65 6c | 73 20 61 72 72 61 79 20 |he level|s array |
|00004060| 63 6f 6e 74 61 69 6e 73 | 20 74 68 65 20 48 65 61 |contains| the Hea|
|00004070| 64 20 70 6f 69 6e 74 65 | 72 73 20 77 68 69 63 68 |d pointe|rs which|
|00004080| 20 63 6f 6e 74 72 6f 6c | 20 74 68 65 0a 6c 69 6e | control| the.lin|
|00004090| 6b 65 64 20 6c 69 73 74 | 73 20 6f 66 20 6e 65 77 |ked list|s of new|
|000040a0| 73 67 72 6f 75 70 73 20 | 67 72 6f 75 70 65 64 20 |sgroups |grouped |
|000040b0| 62 79 20 74 68 65 69 72 | 20 22 64 65 70 74 68 22 |by their| "depth"|
|000040c0| 20 69 6e 20 74 68 65 0a | 68 69 65 72 61 72 63 68 | in the.|hierarch|
|000040d0| 79 2c 20 61 6e 64 20 73 | 6f 72 74 65 64 20 61 6c |y, and s|orted al|
|000040e0| 70 68 61 62 65 74 69 63 | 61 6c 6c 79 2e 20 20 45 |phabetic|ally. E|
|000040f0| 2e 67 2e 20 61 6c 74 2c | 20 73 63 69 2c 20 73 6f |.g. alt,| sci, so|
|00004100| 63 20 61 72 65 20 0a 6c | 65 76 65 6c 20 30 2c 20 |c are .l|evel 0, |
|00004110| 61 6c 74 2e 70 61 67 61 | 6e 2c 20 73 63 69 2e 70 |alt.paga|n, sci.p|
|00004120| 68 79 73 69 63 73 20 61 | 72 65 20 6c 65 76 65 6c |hysics a|re level|
|00004130| 20 31 20 61 6e 64 20 73 | 6f 20 6f 6e 2e 20 2a 2f | 1 and s|o on. */|
|00004140| 0a 0a 73 74 72 75 63 74 | 20 61 63 74 69 66 20 2a |..struct| actif *|
|00004150| 6c 65 76 65 6c 73 5b 4d | 41 58 4c 45 56 45 4c 53 |levels[M|AXLEVELS|
|00004160| 5d 3b 20 20 2f 2a 20 6b | 65 65 70 20 74 72 61 63 |]; /* k|eep trac|
|00004170| 6b 20 6f 66 20 6c 65 76 | 65 6c 73 20 77 69 74 68 |k of lev|els with|
|00004180| 20 74 68 69 73 20 61 72 | 72 61 79 20 2a 2f 0a 0a | this ar|ray */..|
|00004190| 69 6e 74 20 20 20 20 69 | 5f 6c 65 76 65 6c 73 3b |int i|_levels;|
|000041a0| 20 20 20 20 2f 2a 20 69 | 6e 64 65 78 20 69 6e 74 | /* i|ndex int|
|000041b0| 6f 20 61 72 72 61 79 20 | 2a 2f 0a 0a 2f 2a 20 43 |o array |*/../* C|
|000041c0| 6f 6d 70 61 72 69 73 6f | 6e 20 66 75 6e 63 74 69 |ompariso|n functi|
|000041d0| 6f 6e 73 20 66 6f 72 20 | 71 73 6f 72 74 2e 20 20 |ons for |qsort. |
|000041e0| 54 68 65 73 65 20 66 75 | 6e 63 74 69 6f 6e 73 20 |These fu|nctions |
|000041f0| 61 72 65 20 75 73 65 64 | 20 66 6f 72 0a 73 6f 72 |are used| for.sor|
|00004200| 74 69 6e 67 20 74 68 65 | 20 61 72 72 61 79 20 6f |ting the| array o|
|00004210| 66 20 70 6f 69 6e 74 65 | 72 73 20 74 68 61 74 20 |f pointe|rs that |
|00004220| 70 6f 69 6e 74 20 74 6f | 20 6f 75 72 20 61 63 74 |point to| our act|
|00004230| 69 66 20 64 61 74 61 20 | 73 74 72 75 63 74 75 72 |if data |structur|
|00004240| 65 73 2e 20 2a 2f 0a 0a | 69 6e 74 20 20 20 20 71 |es. */..|int q|
|00004250| 63 6f 6d 70 61 72 65 28 | 69 74 65 6d 31 2c 69 74 |compare(|item1,it|
|00004260| 65 6d 32 29 20 20 20 20 | 2f 2a 20 73 6f 72 74 20 |em2) |/* sort |
|00004270| 62 79 20 6e 61 6d 65 20 | 2a 2f 0a 73 74 72 75 63 |by name |*/.struc|
|00004280| 74 20 61 63 74 69 66 20 | 20 20 20 2a 2a 69 74 65 |t actif | **ite|
|00004290| 6d 31 2c 20 2a 2a 69 74 | 65 6d 32 3b 0a 7b 0a 73 |m1, **it|em2;.{.s|
|000042a0| 74 72 75 63 74 20 61 63 | 74 69 66 20 20 20 20 2a |truct ac|tif *|
|000042b0| 70 74 72 31 2c 20 2a 70 | 74 72 32 3b 0a 20 20 20 |ptr1, *p|tr2;. |
|000042c0| 20 70 74 72 31 20 3d 20 | 28 73 74 72 75 63 74 20 | ptr1 = |(struct |
|000042d0| 61 63 74 69 66 20 2a 29 | 20 2a 69 74 65 6d 31 3b |actif *)| *item1;|
|000042e0| 0a 20 20 20 20 70 74 72 | 32 20 3d 20 28 73 74 72 |. ptr|2 = (str|
|000042f0| 75 63 74 20 61 63 74 69 | 66 20 2a 29 20 2a 69 74 |uct acti|f *) *it|
|00004300| 65 6d 32 3b 0a 20 20 20 | 20 72 65 74 75 72 6e 20 |em2;. | return |
|00004310| 28 73 74 72 63 6d 70 28 | 70 74 72 31 2d 3e 6e 61 |(strcmp(|ptr1->na|
|00004320| 6d 65 2c 20 70 74 72 32 | 2d 3e 6e 61 6d 65 29 29 |me, ptr2|->name))|
|00004330| 3b 0a 7d 0a 0a 69 6e 74 | 20 20 20 20 69 63 6f 6d |;.}..int| icom|
|00004340| 70 61 72 65 28 69 74 65 | 6d 31 2c 69 74 65 6d 32 |pare(ite|m1,item2|
|00004350| 29 20 20 20 20 2f 2a 20 | 73 6f 72 74 20 62 79 20 |) /* |sort by |
|00004360| 69 6e 64 65 78 20 6e 75 | 6d 62 65 72 20 2a 2f 0a |index nu|mber */.|
|00004370| 73 74 72 75 63 74 20 61 | 63 74 69 66 20 20 20 20 |struct a|ctif |
|00004380| 2a 2a 69 74 65 6d 31 2c | 20 2a 2a 69 74 65 6d 32 |**item1,| **item2|
|00004390| 3b 0a 7b 0a 73 74 72 75 | 63 74 20 61 63 74 69 66 |;.{.stru|ct actif|
|000043a0| 20 20 20 20 2a 70 74 72 | 31 2c 20 2a 70 74 72 32 | *ptr|1, *ptr2|
|000043b0| 3b 0a 20 20 20 20 70 74 | 72 31 20 3d 20 28 73 74 |;. pt|r1 = (st|
|000043c0| 72 75 63 74 20 61 63 74 | 69 66 20 2a 29 20 2a 69 |ruct act|if *) *i|
|000043d0| 74 65 6d 31 3b 0a 20 20 | 20 20 70 74 72 32 20 3d |tem1;. | ptr2 =|
|000043e0| 20 28 73 74 72 75 63 74 | 20 61 63 74 69 66 20 2a | (struct| actif *|
|000043f0| 29 20 2a 69 74 65 6d 32 | 3b 0a 20 20 20 20 72 65 |) *item2|;. re|
|00004400| 74 75 72 6e 20 28 70 74 | 72 31 2d 3e 70 6f 73 69 |turn (pt|r1->posi|
|00004410| 74 69 6f 6e 20 2d 20 70 | 74 72 32 2d 3e 70 6f 73 |tion - p|tr2->pos|
|00004420| 69 74 69 6f 6e 29 3b 0a | 7d 0a 0a 2f 2a 20 54 68 |ition);.|}../* Th|
|00004430| 69 73 20 72 6f 75 74 69 | 6e 65 20 77 69 6c 6c 20 |is routi|ne will |
|00004440| 6d 6f 76 65 20 61 6c 6c | 20 73 75 62 73 63 72 69 |move all| subscri|
|00004450| 62 65 64 20 6e 65 77 73 | 67 72 6f 75 70 73 20 74 |bed news|groups t|
|00004460| 6f 20 74 68 65 20 74 6f | 70 0a 20 2a 20 6f 66 20 |o the to|p. * of |
|00004470| 74 68 65 20 6c 69 73 74 | 2e 20 20 49 66 20 74 68 |the list|. If th|
|00004480| 65 20 6c 69 73 74 20 77 | 61 73 20 69 6e 20 61 6c |e list w|as in al|
|00004490| 70 68 61 62 65 74 69 63 | 61 6c 20 6f 72 64 65 72 |phabetic|al order|
|000044a0| 2c 20 74 68 65 6e 20 0a | 20 2a 20 74 68 69 73 20 |, then .| * this |
|000044b0| 6f 72 64 65 72 20 77 69 | 6c 6c 20 62 65 20 72 65 |order wi|ll be re|
|000044c0| 74 61 69 6e 65 64 2c 20 | 6f 74 68 65 72 77 69 73 |tained, |otherwis|
|000044d0| 65 20 6e 75 6d 65 72 69 | 63 20 6f 72 64 65 72 20 |e numeri|c order |
|000044e0| 77 69 6c 6c 0a 20 2a 20 | 62 65 20 75 73 65 64 2e |will. * |be used.|
|000044f0| 0a 20 2a 2f 0a 69 6e 74 | 20 20 20 20 73 63 6f 6d |. */.int| scom|
|00004500| 70 61 72 65 28 69 74 65 | 6d 31 2c 69 74 65 6d 32 |pare(ite|m1,item2|
|00004510| 29 20 20 20 20 2f 2a 20 | 73 6f 72 74 20 62 79 20 |) /* |sort by |
|00004520| 73 75 62 73 63 72 69 70 | 74 69 6f 6e 20 73 74 61 |subscrip|tion sta|
|00004530| 74 75 73 20 2a 2f 0a 73 | 74 72 75 63 74 20 61 63 |tus */.s|truct ac|
|00004540| 74 69 66 20 20 20 20 2a | 2a 69 74 65 6d 31 2c 20 |tif *|*item1, |
|00004550| 2a 2a 69 74 65 6d 32 3b | 0a 7b 0a 73 74 72 75 63 |**item2;|.{.struc|
|00004560| 74 20 61 63 74 69 66 20 | 20 20 20 2a 70 74 72 31 |t actif | *ptr1|
|00004570| 2c 20 2a 70 74 72 32 3b | 0a 69 6e 74 20 20 20 20 |, *ptr2;|.int |
|00004580| 74 65 6d 70 5f 72 65 73 | 75 6c 74 3b 0a 65 78 74 |temp_res|ult;.ext|
|00004590| 65 72 6e 20 69 6e 74 20 | 61 6c 70 68 61 62 65 74 |ern int |alphabet|
|000045a0| 69 7a 65 64 3b 0a 0a 20 | 20 20 20 70 74 72 31 20 |ized;.. | ptr1 |
|000045b0| 3d 20 28 73 74 72 75 63 | 74 20 61 63 74 69 66 20 |= (struc|t actif |
|000045c0| 2a 29 20 2a 69 74 65 6d | 31 3b 0a 20 20 20 20 70 |*) *item|1;. p|
|000045d0| 74 72 32 20 3d 20 28 73 | 74 72 75 63 74 20 61 63 |tr2 = (s|truct ac|
|000045e0| 74 69 66 20 2a 29 20 2a | 69 74 65 6d 32 3b 0a 20 |tif *) *|item2;. |
|000045f0| 20 20 20 74 65 6d 70 5f | 72 65 73 75 6c 74 20 3d | temp_|result =|
|00004600| 20 70 74 72 32 2d 3e 73 | 74 61 74 75 73 20 2d 20 | ptr2->s|tatus - |
|00004610| 70 74 72 31 2d 3e 73 74 | 61 74 75 73 3b 0a 20 20 |ptr1->st|atus;. |
|00004620| 20 20 69 66 20 28 74 65 | 6d 70 5f 72 65 73 75 6c | if (te|mp_resul|
|00004630| 74 20 3d 3d 20 30 29 20 | 7b 0a 20 20 20 20 20 20 |t == 0) |{. |
|00004640| 20 69 66 20 28 61 6c 70 | 68 61 62 65 74 69 7a 65 | if (alp|habetize|
|00004650| 64 29 20 0a 20 20 20 20 | 20 20 20 20 20 20 20 72 |d) . | r|
|00004660| 65 74 75 72 6e 20 28 73 | 74 72 63 6d 70 28 70 74 |eturn (s|trcmp(pt|
|00004670| 72 31 2d 3e 6e 61 6d 65 | 2c 20 70 74 72 32 2d 3e |r1->name|, ptr2->|
|00004680| 6e 61 6d 65 29 29 3b 0a | 20 20 20 20 20 20 20 65 |name));.| e|
|00004690| 6c 73 65 0a 20 20 20 20 | 20 20 20 20 20 20 20 72 |lse. | r|
|000046a0| 65 74 75 72 6e 20 28 70 | 74 72 31 2d 3e 70 6f 73 |eturn (p|tr1->pos|
|000046b0| 69 74 69 6f 6e 20 2d 20 | 70 74 72 32 2d 3e 70 6f |ition - |ptr2->po|
|000046c0| 73 69 74 69 6f 6e 29 3b | 0a 20 20 20 20 7d 0a 20 |sition);|. }. |
|000046d0| 20 20 20 72 65 74 75 72 | 6e 20 28 74 65 6d 70 5f | retur|n (temp_|
|000046e0| 72 65 73 75 6c 74 29 3b | 0a 7d 0a 0a 2f 2a 20 63 |result);|.}../* c|
|000046f0| 6c 65 61 6e 75 70 28 29 | 20 2d 2d 20 72 65 6d 6f |leanup()| -- remo|
|00004700| 76 65 20 6c 6f 63 6b 20 | 66 69 6c 65 2c 20 74 68 |ve lock |file, th|
|00004710| 65 6e 20 65 78 69 74 2e | 20 2a 2f 0a 0a 76 6f 69 |en exit.| */..voi|
|00004720| 64 20 20 20 20 63 6c 65 | 61 6e 75 70 28 29 0a 7b |d cle|anup().{|
|00004730| 0a 23 69 66 64 65 66 20 | 55 4e 49 58 0a 65 78 74 |.#ifdef |UNIX.ext|
|00004740| 65 72 6e 20 73 74 72 75 | 63 74 20 74 65 72 6d 69 |ern stru|ct termi|
|00004750| 6f 20 74 62 75 66 73 61 | 76 65 3b 0a 65 78 74 65 |o tbufsa|ve;.exte|
|00004760| 72 6e 20 69 6e 74 20 20 | 20 20 74 62 75 66 5f 6f |rn int | tbuf_o|
|00004770| 6b 3b 0a 0a 20 20 20 20 | 69 66 20 28 74 62 75 66 |k;.. |if (tbuf|
|00004780| 5f 6f 6b 29 20 69 6f 63 | 74 6c 28 30 2c 20 54 43 |_ok) ioc|tl(0, TC|
|00004790| 53 45 54 41 46 2c 20 26 | 74 62 75 66 73 61 76 65 |SETAF, &|tbufsave|
|000047a0| 29 3b 0a 23 65 6e 64 69 | 66 20 2f 2a 20 55 4e 49 |);.#endi|f /* UNI|
|000047b0| 58 20 2a 2f 0a 0a 20 20 | 20 20 69 66 20 28 63 75 |X */.. | if (cu|
|000047c0| 72 73 65 73 5f 6f 6b 29 | 20 65 6e 64 77 69 6e 28 |rses_ok)| endwin(|
|000047d0| 29 3b 20 20 2f 2a 20 74 | 65 72 6d 69 6e 61 74 65 |); /* t|erminate|
|000047e0| 20 63 75 72 73 65 73 20 | 2a 2f 0a 23 69 66 64 65 | curses |*/.#ifde|
|000047f0| 66 20 55 4e 49 58 0a 20 | 20 20 20 69 66 20 28 68 |f UNIX. | if (h|
|00004800| 6f 6d 65 20 21 3d 20 28 | 63 68 61 72 20 2a 29 4e |ome != (|char *)N|
|00004810| 55 4c 4c 29 0a 20 20 20 | 20 20 20 20 20 73 70 72 |ULL). | spr|
|00004820| 69 6e 74 66 28 74 6d 70 | 2c 20 22 25 73 2f 25 73 |intf(tmp|, "%s/%s|
|00004830| 22 2c 20 68 6f 6d 65 2c | 20 52 4e 4c 4f 43 4b 29 |", home,| RNLOCK)|
|00004840| 3b 0a 20 20 20 20 65 6c | 73 65 20 20 20 20 73 74 |;. el|se st|
|00004850| 72 63 70 79 28 74 6d 70 | 2c 20 52 4e 4c 4f 43 4b |rcpy(tmp|, RNLOCK|
|00004860| 29 3b 0a 20 20 20 20 69 | 66 20 28 76 65 72 62 6f |);. i|f (verbo|
|00004870| 73 65 29 20 70 72 69 6e | 74 66 28 22 52 65 6d 6f |se) prin|tf("Remo|
|00004880| 76 69 6e 67 20 6c 6f 63 | 6b 20 66 69 6c 65 20 25 |ving loc|k file %|
|00004890| 73 5c 6e 22 2c 74 6d 70 | 29 3b 0a 20 20 20 20 75 |s\n",tmp|);. u|
|000048a0| 6e 6c 69 6e 6b 28 74 6d | 70 29 3b 0a 23 65 6e 64 |nlink(tm|p);.#end|
|000048b0| 69 66 20 2f 2a 20 55 4e | 49 58 20 2a 2f 0a 20 20 |if /* UN|IX */. |
|000048c0| 20 20 2f 2a 0a 20 20 20 | 20 20 2a 20 4e 6f 77 20 | /*. | * Now |
|000048d0| 72 75 6e 20 74 68 72 6f | 75 67 68 20 74 68 65 20 |run thro|ugh the |
|000048e0| 61 72 72 61 79 20 63 6f | 6e 74 61 69 6e 69 6e 67 |array co|ntaining|
|000048f0| 20 70 6f 69 6e 74 65 72 | 73 20 74 6f 20 74 68 65 | pointer|s to the|
|00004900| 0a 20 20 20 20 20 2a 20 | 62 75 66 66 65 72 73 20 |. * |buffers |
|00004910| 61 6c 6c 6f 63 61 74 65 | 64 20 77 69 74 68 20 6d |allocate|d with m|
|00004920| 61 6c 6c 6f 63 28 29 2c | 20 61 6e 64 20 66 72 65 |alloc(),| and fre|
|00004930| 65 20 74 68 65 6d 2e 0a | 20 20 20 20 20 2a 2f 0a |e them..| */.|
|00004940| 20 20 20 20 69 66 20 28 | 76 65 72 62 6f 73 65 29 | if (|verbose)|
|00004950| 0a 20 20 20 20 20 20 20 | 20 70 72 69 6e 74 66 28 |. | printf(|
|00004960| 22 46 72 65 65 69 6e 67 | 20 25 64 20 62 75 66 66 |"Freeing| %d buff|
|00004970| 65 72 73 20 65 61 63 68 | 20 6f 66 20 25 64 20 62 |ers each| of %d b|
|00004980| 79 74 65 73 2e 5c 6e 22 | 2c 0a 20 20 20 20 20 20 |ytes.\n"|,. |
|00004990| 20 20 20 20 20 20 6d 61 | 6c 6c 6f 63 5f 63 6f 75 | ma|lloc_cou|
|000049a0| 6e 74 2c 57 41 4c 4c 4f | 50 5f 53 49 5a 45 29 3b |nt,WALLO|P_SIZE);|
|000049b0| 0a 20 20 20 20 77 68 69 | 6c 65 20 28 6d 61 6c 6c |. whi|le (mall|
|000049c0| 6f 63 5f 63 6f 75 6e 74 | 20 3e 20 30 29 20 7b 0a |oc_count| > 0) {.|
|000049d0| 20 20 20 20 20 20 20 20 | 66 72 65 65 28 62 75 66 | |free(buf|
|000049e0| 66 65 72 5f 63 69 74 79 | 5b 6d 61 6c 6c 6f 63 5f |fer_city|[malloc_|
|000049f0| 63 6f 75 6e 74 20 2d 20 | 31 5d 29 3b 0a 20 20 20 |count - |1]);. |
|00004a00| 20 20 20 20 20 6d 61 6c | 6c 6f 63 5f 63 6f 75 6e | mal|loc_coun|
|00004a10| 74 2d 2d 3b 0a 20 20 20 | 20 7d 0a 20 20 20 20 65 |t--;. | }. e|
|00004a20| 78 69 74 28 30 29 3b 0a | 7d 0a 0a 2f 2a 20 54 68 |xit(0);.|}../* Th|
|00004a30| 69 73 20 72 6f 75 74 69 | 6e 65 20 77 69 6c 6c 20 |is routi|ne will |
|00004a40| 72 65 61 64 20 74 68 65 | 20 61 20 66 69 6c 65 20 |read the| a file |
|00004a50| 28 64 65 73 63 66 69 6c | 65 29 20 63 6f 6e 74 61 |(descfil|e) conta|
|00004a60| 69 6e 69 6e 67 20 6e 61 | 6d 65 73 20 61 6e 64 0a |ining na|mes and.|
|00004a70| 20 20 20 64 65 73 63 72 | 69 70 74 69 6f 6e 73 20 | descr|iptions |
|00004a80| 6f 66 20 6e 65 77 73 67 | 72 6f 75 70 73 2c 20 6d |of newsg|roups, m|
|00004a90| 61 74 63 68 69 6e 67 20 | 69 74 20 77 69 74 68 20 |atching |it with |
|00004aa0| 74 68 65 20 61 63 74 69 | 76 65 20 66 69 6c 65 2e |the acti|ve file.|
|00004ab0| 20 20 2a 2f 0a 0a 76 6f | 69 64 20 20 20 20 72 65 | */..vo|id re|
|00004ac0| 61 64 5f 64 65 73 63 28 | 64 65 73 63 66 69 6c 65 |ad_desc(|descfile|
|00004ad0| 29 0a 46 49 4c 45 20 20 | 20 20 2a 64 65 73 63 66 |).FILE | *descf|
|00004ae0| 69 6c 65 3b 0a 7b 0a 63 | 68 61 72 20 20 20 20 2a |ile;.{.c|har *|
|00004af0| 6e 61 6d 65 2c 20 2a 64 | 65 73 63 3b 20 20 2f 2a |name, *d|esc; /*|
|00004b00| 20 70 6f 69 6e 74 65 72 | 73 20 74 6f 20 6e 61 6d | pointer|s to nam|
|00004b10| 65 20 61 6e 64 20 64 65 | 73 63 72 69 70 74 69 6f |e and de|scriptio|
|00004b20| 6e 20 2a 2f 0a 69 6e 74 | 20 20 20 20 20 63 6f 75 |n */.int| cou|
|00004b30| 6e 74 65 72 20 3d 20 30 | 3b 0a 0a 20 20 20 20 69 |nter = 0|;.. i|
|00004b40| 5f 61 63 74 69 76 65 20 | 3d 20 30 3b 20 20 20 20 |_active |= 0; |
|00004b50| 20 20 2f 2a 20 73 74 61 | 72 74 20 77 69 74 68 20 | /* sta|rt with |
|00004b60| 66 69 72 73 74 20 6f 6e | 65 20 6f 66 20 63 6f 75 |first on|e of cou|
|00004b70| 72 73 65 20 2a 2f 0a 20 | 20 20 20 61 70 74 72 20 |rse */. | aptr |
|00004b80| 3d 20 28 73 74 72 75 63 | 74 20 61 63 74 69 66 20 |= (struc|t actif |
|00004b90| 2a 29 4e 55 4c 4c 3b 0a | 0a 20 20 20 20 77 68 69 |*)NULL;.|. whi|
|00004ba0| 6c 65 20 28 66 67 65 74 | 73 28 62 75 66 66 65 72 |le (fget|s(buffer|
|00004bb0| 2c 42 55 46 53 49 5a 45 | 2c 64 65 73 63 66 69 6c |,BUFSIZE|,descfil|
|00004bc0| 65 29 20 21 3d 20 28 63 | 68 61 72 20 2a 29 4e 55 |e) != (c|har *)NU|
|00004bd0| 4c 4c 29 20 7b 0a 0a 20 | 20 20 20 2f 2a 20 69 67 |LL) {.. | /* ig|
|00004be0| 6e 6f 72 65 20 63 6f 6d | 6d 65 6e 74 20 6c 69 6e |nore com|ment lin|
|00004bf0| 65 73 20 6f 72 20 62 6c | 61 6e 6b 20 6c 69 6e 65 |es or bl|ank line|
|00004c00| 73 20 2a 2f 0a 20 20 20 | 20 20 20 20 20 73 77 69 |s */. | swi|
|00004c10| 74 63 68 28 62 75 66 66 | 65 72 5b 30 5d 29 20 7b |tch(buff|er[0]) {|
|00004c20| 0a 20 20 20 20 20 20 20 | 20 63 61 73 65 20 27 23 |. | case '#|
|00004c30| 27 3a 0a 20 20 20 20 20 | 20 20 20 63 61 73 65 20 |':. | case |
|00004c40| 27 5c 6e 27 3a 0a 20 20 | 20 20 20 20 20 20 63 61 |'\n':. | ca|
|00004c50| 73 65 20 27 5c 72 27 3a | 0a 20 20 20 20 20 20 20 |se '\r':|. |
|00004c60| 20 63 61 73 65 20 27 5c | 30 27 3a 0a 20 20 20 20 | case '\|0':. |
|00004c70| 20 20 20 20 20 20 20 20 | 63 6f 6e 74 69 6e 75 65 | |continue|
|00004c80| 3b 0a 20 20 20 20 20 20 | 20 20 7d 0a 0a 20 20 20 |;. | }.. |
|00004c90| 20 2f 2a 20 47 65 74 20 | 6e 61 6d 65 20 61 6e 64 | /* Get |name and|
|00004ca0| 20 64 65 73 63 72 69 70 | 74 69 6f 6e 2e 20 20 49 | descrip|tion. I|
|00004cb0| 66 20 65 69 74 68 65 72 | 20 69 73 20 61 62 73 65 |f either| is abse|
|00004cc0| 6e 74 2c 20 73 6b 69 70 | 20 74 68 69 73 20 6c 69 |nt, skip| this li|
|00004cd0| 6e 65 2e 20 2a 2f 0a 20 | 20 20 20 20 20 20 20 69 |ne. */. | i|
|00004ce0| 66 20 28 28 6e 61 6d 65 | 20 3d 20 73 74 72 74 6f |f ((name| = strto|
|00004cf0| 6b 28 62 75 66 66 65 72 | 2c 20 22 20 5c 74 5c 72 |k(buffer|, " \t\r|
|00004d00| 5c 6e 22 29 29 20 3d 3d | 20 28 63 68 61 72 20 2a |\n")) ==| (char *|
|00004d10| 29 4e 55 4c 4c 29 20 63 | 6f 6e 74 69 6e 75 65 3b |)NULL) c|ontinue;|
|00004d20| 0a 20 20 20 20 20 20 20 | 20 69 66 20 28 28 64 65 |. | if ((de|
|00004d30| 73 63 20 3d 20 73 74 72 | 74 6f 6b 28 28 63 68 61 |sc = str|tok((cha|
|00004d40| 72 20 2a 29 4e 55 4c 4c | 2c 20 22 5c 72 5c 6e 22 |r *)NULL|, "\r\n"|
|00004d50| 29 29 20 3d 3d 20 28 63 | 68 61 72 20 2a 29 4e 55 |)) == (c|har *)NU|
|00004d60| 4c 4c 29 20 63 6f 6e 74 | 69 6e 75 65 3b 0a 0a 20 |LL) cont|inue;.. |
|00004d70| 20 20 20 2f 2a 20 41 64 | 76 61 6e 63 65 20 6f 76 | /* Ad|vance ov|
|00004d80| 65 72 20 61 6e 79 20 77 | 68 69 74 65 73 70 61 63 |er any w|hitespac|
|00004d90| 65 20 70 72 65 63 65 64 | 69 6e 67 20 64 65 73 63 |e preced|ing desc|
|00004da0| 72 69 70 74 69 6f 6e 20 | 2a 2f 0a 20 20 20 20 20 |ription |*/. |
|00004db0| 20 20 20 77 68 69 6c 65 | 20 28 28 2a 28 64 65 73 | while| ((*(des|
|00004dc0| 63 29 20 3d 3d 20 27 20 | 27 29 20 7c 7c 20 28 2a |c) == ' |') || (*|
|00004dd0| 28 64 65 73 63 29 20 3d | 3d 20 27 5c 74 27 29 29 |(desc) =|= '\t'))|
|00004de0| 20 64 65 73 63 2b 2b 3b | 0a 0a 20 20 20 20 2f 2a | desc++;|.. /*|
|00004df0| 20 41 6c 74 68 6f 75 67 | 68 20 77 65 20 63 61 6e | Althoug|h we can|
|00004e00| 6e 6f 74 20 61 73 73 75 | 6d 65 20 74 68 61 74 20 |not assu|me that |
|00004e10| 74 68 65 20 6e 65 77 73 | 67 72 6f 75 70 73 20 61 |the news|groups a|
|00004e20| 72 65 20 69 6e 20 61 6c | 70 68 61 62 65 74 69 63 |re in al|phabetic|
|00004e30| 61 6c 0a 20 20 20 20 20 | 2a 20 6f 72 64 65 72 2c |al. |* order,|
|00004e40| 20 77 65 27 6c 6c 20 74 | 72 79 20 6c 6f 6f 6b 69 | we'll t|ry looki|
|00004e50| 6e 67 20 61 74 20 74 68 | 65 20 6e 65 78 74 20 6f |ng at th|e next o|
|00004e60| 6e 65 20 61 6e 79 77 61 | 79 20 62 65 66 6f 72 65 |ne anywa|y before|
|00004e70| 20 64 6f 69 6e 67 20 61 | 0a 20 20 20 20 20 2a 20 | doing a|. * |
|00004e80| 73 65 61 72 63 68 2e 20 | 2a 2f 0a 0a 20 20 20 20 |search. |*/.. |
|00004e90| 20 20 20 20 69 66 20 28 | 69 5f 61 63 74 69 76 65 | if (|i_active|
|00004ea0| 20 3c 3d 20 63 5f 61 63 | 74 69 76 65 29 20 20 20 | <= c_ac|tive) |
|00004eb0| 20 2f 2a 20 72 61 6e 67 | 65 20 63 68 65 63 6b 20 | /* rang|e check |
|00004ec0| 2a 2f 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 61 |*/. | a|
|00004ed0| 70 74 72 20 3d 20 61 63 | 74 5b 69 5f 61 63 74 69 |ptr = ac|t[i_acti|
|00004ee0| 76 65 5d 3b 0a 0a 20 20 | 20 20 2f 2a 20 54 68 69 |ve];.. | /* Thi|
|00004ef0| 73 20 6e 65 78 74 20 6c | 69 6e 65 20 73 68 6f 75 |s next l|ine shou|
|00004f00| 6c 64 20 6e 65 76 65 72 | 20 68 61 70 70 65 6e 2e |ld never| happen.|
|00004f10| 20 20 49 74 20 77 6f 75 | 6c 64 20 6f 6e 6c 79 20 | It wou|ld only |
|00004f20| 6f 63 63 75 72 20 69 66 | 0a 20 20 20 20 20 2a 20 |occur if|. * |
|00004f30| 77 65 27 76 65 20 72 75 | 6e 20 6f 75 74 20 6f 66 |we've ru|n out of|
|00004f40| 20 74 68 69 6e 67 73 20 | 74 6f 20 6d 61 74 63 68 | things |to match|
|00004f50| 21 20 2a 2f 0a 0a 20 20 | 20 20 20 20 20 20 69 66 |! */.. | if|
|00004f60| 20 28 61 70 74 72 20 3d | 3d 20 28 73 74 72 75 63 | (aptr =|= (struc|
|00004f70| 74 20 61 63 74 69 66 20 | 2a 29 4e 55 4c 4c 29 20 |t actif |*)NULL) |
|00004f80| 7b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 69 66 |{. | if|
|00004f90| 20 28 76 65 72 62 6f 73 | 65 29 20 70 72 69 6e 74 | (verbos|e) print|
|00004fa0| 66 28 22 54 68 69 73 20 | 73 68 6f 75 6c 64 20 6e |f("This |should n|
|00004fb0| 65 76 65 72 20 68 61 70 | 70 65 6e 21 5c 6e 22 29 |ever hap|pen!\n")|
|00004fc0| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 63 6f |;. | co|
|00004fd0| 6e 74 69 6e 75 65 3b 0a | 20 20 20 20 20 20 20 20 |ntinue;.| |
|00004fe0| 7d 0a 0a 20 20 20 20 2f | 2a 20 4e 6f 77 20 63 6f |}.. /|* Now co|
|00004ff0| 6d 70 61 72 65 20 74 68 | 65 20 6e 61 6d 65 20 72 |mpare th|e name r|
|00005000| 65 61 64 20 77 69 74 68 | 20 63 75 72 72 65 6e 74 |ead with| current|
|00005010| 20 70 6f 73 69 74 69 6f | 6e 20 69 6e 20 61 63 74 | positio|n in act|
|00005020| 69 76 65 20 66 69 6c 65 | 20 2a 2f 0a 0a 20 20 20 |ive file| */.. |
|00005030| 20 20 20 20 20 69 66 20 | 28 73 74 72 63 6d 70 28 | if |(strcmp(|
|00005040| 6e 61 6d 65 2c 61 70 74 | 72 2d 3e 6e 61 6d 65 29 |name,apt|r->name)|
|00005050| 20 3d 3d 20 30 29 20 7b | 0a 0a 2f 2a 20 48 65 72 | == 0) {|../* Her|
|00005060| 65 20 77 65 20 6c 6f 6f | 6b 20 66 6f 72 20 74 68 |e we loo|k for th|
|00005070| 65 20 62 65 73 74 20 64 | 65 73 63 72 69 70 74 69 |e best d|escripti|
|00005080| 6f 6e 20 70 6f 73 73 69 | 62 6c 65 2c 20 69 2e 65 |on possi|ble, i.e|
|00005090| 2e 20 6f 6e 65 20 74 68 | 61 74 20 69 73 20 6e 6f |. one th|at is no|
|000050a0| 74 20 0a 6e 75 6c 6c 2c | 20 61 6e 64 20 70 72 65 |t .null,| and pre|
|000050b0| 66 65 72 61 62 6c 79 20 | 6c 6f 6e 67 65 73 74 20 |ferably |longest |
|000050c0| 28 69 2e 65 2e 20 6e 6f | 74 20 6a 75 73 74 20 61 |(i.e. no|t just a|
|000050d0| 20 27 3f 27 29 2e 20 20 | 54 68 69 73 20 77 69 6c | '?'). |This wil|
|000050e0| 6c 20 62 65 20 62 65 63 | 61 75 73 65 20 0a 77 65 |l be bec|ause .we|
|000050f0| 20 6d 61 79 20 66 69 6e | 64 20 64 75 70 6c 69 63 | may fin|d duplic|
|00005100| 61 74 65 20 6c 69 6e 65 | 73 20 69 6e 20 74 68 65 |ate line|s in the|
|00005110| 20 6e 65 77 73 67 72 6f | 75 70 73 20 66 69 6c 65 | newsgro|ups file|
|00005120| 2e 20 20 41 6c 73 6f 2c | 20 69 74 20 6d 61 79 20 |. Also,| it may |
|00005130| 62 65 20 0a 70 6f 73 73 | 69 62 6c 65 20 74 6f 20 |be .poss|ible to |
|00005140| 66 69 6e 64 20 6e 6f 20 | 64 65 73 63 72 69 70 74 |find no |descript|
|00005150| 69 6f 6e 20 61 74 20 61 | 6c 6c 2e 20 2a 2f 0a 0a |ion at a|ll. */..|
|00005160| 20 20 20 20 20 20 20 20 | 20 20 20 20 69 66 20 28 | | if (|
|00005170| 61 70 74 72 2d 3e 64 65 | 73 63 20 21 3d 20 28 63 |aptr->de|sc != (c|
|00005180| 68 61 72 20 2a 29 4e 55 | 4c 4c 29 20 7b 0a 20 20 |har *)NU|LL) {. |
|00005190| 20 20 20 20 20 20 20 20 | 20 20 2f 2a 20 64 6f 6e | | /* don|
|000051a0| 27 74 20 61 63 63 65 70 | 74 20 61 6e 20 69 6e 66 |'t accep|t an inf|
|000051b0| 65 72 69 6f 72 20 64 65 | 73 63 72 69 70 74 69 6f |erior de|scriptio|
|000051c0| 6e 20 2a 2f 0a 20 20 20 | 20 20 20 20 20 20 20 20 |n */. | |
|000051d0| 20 20 20 20 20 69 66 20 | 28 73 74 72 6c 65 6e 28 | if |(strlen(|
|000051e0| 64 65 73 63 29 20 3c 3d | 20 73 74 72 6c 65 6e 28 |desc) <=| strlen(|
|000051f0| 61 70 74 72 2d 3e 64 65 | 73 63 29 29 20 63 6f 6e |aptr->de|sc)) con|
|00005200| 74 69 6e 75 65 3b 0a 20 | 20 20 20 20 20 20 20 20 |tinue;. | |
|00005210| 20 20 20 7d 0a 0a 20 20 | 20 20 20 20 20 20 2f 2a | }.. | /*|
|00005220| 20 61 6c 6c 6f 63 61 74 | 65 20 73 70 61 63 65 20 | allocat|e space |
|00005230| 66 6f 72 20 73 74 72 69 | 6e 67 20 2b 20 6e 75 6c |for stri|ng + nul|
|00005240| 6c 20 62 79 74 65 2c 20 | 74 68 65 6e 20 63 6f 70 |l byte, |then cop|
|00005250| 79 20 69 74 20 69 6e 20 | 2a 2f 0a 20 20 20 20 20 |y it in |*/. |
|00005260| 20 20 20 20 20 20 20 69 | 66 20 28 28 61 70 74 72 | i|f ((aptr|
|00005270| 2d 3e 64 65 73 63 20 3d | 20 28 63 68 61 72 20 2a |->desc =| (char *|
|00005280| 29 77 61 6c 6c 6f 70 28 | 73 74 72 6c 65 6e 28 64 |)wallop(|strlen(d|
|00005290| 65 73 63 29 2b 31 29 29 | 20 3d 3d 20 28 63 68 61 |esc)+1))| == (cha|
|000052a0| 72 20 2a 29 4e 55 4c 4c | 29 20 7b 0a 20 20 20 20 |r *)NULL|) {. |
|000052b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 70 72 69 6e | | prin|
|000052c0| 74 66 28 22 46 61 74 61 | 6c 20 65 72 72 6f 72 20 |tf("Fata|l error |
|000052d0| 77 68 69 6c 65 20 61 6c | 6c 6f 63 61 74 69 6e 67 |while al|locating|
|000052e0| 20 6d 65 6d 6f 72 79 21 | 5c 6e 22 29 3b 0a 20 20 | memory!|\n");. |
|000052f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 63 6c | | cl|
|00005300| 65 61 6e 75 70 28 29 3b | 0a 20 20 20 20 20 20 20 |eanup();|. |
|00005310| 20 20 20 20 20 7d 0a 20 | 20 20 20 20 20 20 20 20 | }. | |
|00005320| 20 20 20 73 74 72 63 70 | 79 28 61 70 74 72 2d 3e | strcp|y(aptr->|
|00005330| 64 65 73 63 2c 64 65 73 | 63 29 3b 0a 20 20 20 20 |desc,des|c);. |
|00005340| 20 20 20 20 20 20 20 20 | 63 6f 75 6e 74 65 72 2b | |counter+|
|00005350| 2b 3b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 69 |+;. | i|
|00005360| 5f 61 63 74 69 76 65 2b | 2b 3b 20 20 20 20 20 20 |_active+|+; |
|00005370| 2f 2a 20 61 64 76 61 6e | 63 65 20 69 6e 64 65 78 |/* advan|ce index|
|00005380| 20 74 6f 20 6e 65 78 74 | 20 70 6f 69 6e 74 65 72 | to next| pointer|
|00005390| 20 2a 2f 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | */. | |
|000053a0| 69 66 20 28 69 5f 61 63 | 74 69 76 65 20 3d 3d 20 |if (i_ac|tive == |
|000053b0| 63 5f 61 63 74 69 76 65 | 29 20 69 5f 61 63 74 69 |c_active|) i_acti|
|000053c0| 76 65 20 3d 20 30 3b 0a | 20 20 20 20 20 20 20 20 |ve = 0;.| |
|000053d0| 20 20 20 20 63 6f 6e 74 | 69 6e 75 65 3b 0a 20 20 | cont|inue;. |
|000053e0| 20 20 20 20 20 20 7d 0a | 0a 20 20 20 20 2f 2a 20 | }.|. /* |
|000053f0| 20 48 65 72 65 20 77 65 | 20 62 65 67 69 6e 20 61 | Here we| begin a|
|00005400| 20 62 69 6e 61 72 79 20 | 63 68 6f 70 20 73 65 61 | binary |chop sea|
|00005410| 72 63 68 2c 20 63 6f 6d | 70 61 72 69 6e 67 20 74 |rch, com|paring t|
|00005420| 68 65 20 6e 65 77 73 67 | 72 6f 75 70 0a 20 20 20 |he newsg|roup. |
|00005430| 20 20 2a 20 20 6e 61 6d | 65 20 77 65 20 68 61 76 | * nam|e we hav|
|00005440| 65 20 6a 75 73 74 20 72 | 65 61 64 20 66 72 6f 6d |e just r|ead from|
|00005450| 20 74 68 65 20 6e 65 77 | 73 67 72 6f 75 70 73 20 | the new|sgroups |
|00005460| 66 69 6c 65 20 77 69 74 | 68 20 74 68 65 20 6c 69 |file wit|h the li|
|00005470| 73 74 0a 20 20 20 20 20 | 2a 20 20 6f 66 20 6e 65 |st. |* of ne|
|00005480| 77 73 67 72 6f 75 70 73 | 20 72 65 61 64 20 66 72 |wsgroups| read fr|
|00005490| 6f 6d 20 74 68 65 20 61 | 63 74 69 76 65 20 66 69 |om the a|ctive fi|
|000054a0| 6c 65 2e 20 20 2a 2f 0a | 0a 20 20 20 20 20 20 20 |le. */.|. |
|000054b0| 20 6c 6f 77 20 3d 20 30 | 3b 0a 20 20 20 20 20 20 | low = 0|;. |
|000054c0| 20 20 68 69 67 68 20 3d | 20 63 5f 61 63 74 69 76 | high =| c_activ|
|000054d0| 65 20 2d 20 31 3b 0a 6c | 6f 6f 70 31 3a 0a 20 20 |e - 1;.l|oop1:. |
|000054e0| 20 20 20 20 20 20 69 66 | 20 28 6c 6f 77 20 3c 3d | if| (low <=|
|000054f0| 20 68 69 67 68 29 20 7b | 0a 20 20 20 20 20 20 20 | high) {|. |
|00005500| 20 20 20 20 20 6d 69 64 | 20 3d 20 28 6c 6f 77 2b | mid| = (low+|
|00005510| 68 69 67 68 29 2f 32 3b | 0a 20 20 20 20 20 20 20 |high)/2;|. |
|00005520| 20 20 20 20 20 61 70 74 | 72 20 3d 20 61 63 74 5b | apt|r = act[|
|00005530| 6d 69 64 5d 3b 0a 20 20 | 20 20 20 20 20 20 20 20 |mid];. | |
|00005540| 20 20 72 65 73 75 6c 74 | 20 3d 20 73 74 72 63 6d | result| = strcm|
|00005550| 70 28 6e 61 6d 65 2c 61 | 70 74 72 2d 3e 6e 61 6d |p(name,a|ptr->nam|
|00005560| 65 29 3b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |e);. | |
|00005570| 69 66 20 28 72 65 73 75 | 6c 74 20 3d 3d 20 30 29 |if (resu|lt == 0)|
|00005580| 20 7b 0a 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | {.. | |
|00005590| 20 20 20 20 69 66 20 28 | 61 70 74 72 2d 3e 64 65 | if (|aptr->de|
|000055a0| 73 63 20 21 3d 20 28 63 | 68 61 72 20 2a 29 4e 55 |sc != (c|har *)NU|
|000055b0| 4c 4c 29 20 7b 0a 20 20 | 20 20 20 20 20 20 20 20 |LL) {. | |
|000055c0| 20 20 20 20 20 20 2f 2a | 20 64 6f 6e 27 74 20 61 | /*| don't a|
|000055d0| 63 63 65 70 74 20 61 6e | 20 69 6e 66 65 72 69 6f |ccept an| inferio|
|000055e0| 72 20 64 65 73 63 72 69 | 70 74 69 6f 6e 20 2a 2f |r descri|ption */|
|000055f0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00005600| 20 20 20 20 20 69 66 20 | 28 73 74 72 6c 65 6e 28 | if |(strlen(|
|00005610| 64 65 73 63 29 20 3c 3d | 20 73 74 72 6c 65 6e 28 |desc) <=| strlen(|
|00005620| 61 70 74 72 2d 3e 64 65 | 73 63 29 29 20 63 6f 6e |aptr->de|sc)) con|
|00005630| 74 69 6e 75 65 3b 0a 20 | 20 20 20 20 20 20 20 20 |tinue;. | |
|00005640| 20 20 20 20 20 20 20 7d | 0a 0a 20 20 20 20 20 20 | }|.. |
|00005650| 20 20 20 20 20 20 2f 2a | 20 61 6c 6c 6f 63 61 74 | /*| allocat|
|00005660| 65 20 73 70 61 63 65 20 | 66 6f 72 20 73 74 72 69 |e space |for stri|
|00005670| 6e 67 20 2b 20 6e 75 6c | 6c 20 62 79 74 65 2c 20 |ng + nul|l byte, |
|00005680| 74 68 65 6e 20 63 6f 70 | 79 20 69 74 20 69 6e 20 |then cop|y it in |
|00005690| 2a 2f 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |*/. | |
|000056a0| 20 20 20 69 66 20 28 28 | 61 70 74 72 2d 3e 64 65 | if ((|aptr->de|
|000056b0| 73 63 20 3d 20 28 63 68 | 61 72 20 2a 29 77 61 6c |sc = (ch|ar *)wal|
|000056c0| 6c 6f 70 28 73 74 72 6c | 65 6e 28 64 65 73 63 29 |lop(strl|en(desc)|
|000056d0| 2b 31 29 29 0a 20 20 20 | 20 20 20 20 20 20 20 20 |+1)). | |
|000056e0| 20 20 20 20 20 20 20 20 | 3d 3d 20 28 63 68 61 72 | |== (char|
|000056f0| 20 2a 29 4e 55 4c 4c 29 | 20 7b 0a 20 20 20 20 20 | *)NULL)| {. |
|00005700| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 70 | | p|
|00005710| 72 69 6e 74 66 28 22 46 | 61 74 61 6c 20 65 72 72 |rintf("F|atal err|
|00005720| 6f 72 20 77 68 69 6c 65 | 20 61 6c 6c 6f 63 61 74 |or while| allocat|
|00005730| 69 6e 67 20 6d 65 6d 6f | 72 79 21 5c 6e 22 29 3b |ing memo|ry!\n");|
|00005740| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00005750| 20 20 20 20 20 63 6c 65 | 61 6e 75 70 28 29 3b 0a | cle|anup();.|
|00005760| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005770| 7d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |}. | |
|00005780| 20 20 73 74 72 63 70 79 | 28 61 70 74 72 2d 3e 64 | strcpy|(aptr->d|
|00005790| 65 73 63 2c 64 65 73 63 | 29 3b 0a 0a 20 20 20 20 |esc,desc|);.. |
|000057a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 69 5f 61 63 | | i_ac|
|000057b0| 74 69 76 65 20 3d 20 6d | 69 64 20 2b 20 31 3b 0a |tive = m|id + 1;.|
|000057c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000057d0| 69 66 20 28 69 5f 61 63 | 74 69 76 65 20 3d 3d 20 |if (i_ac|tive == |
|000057e0| 63 5f 61 63 74 69 76 65 | 29 20 69 5f 61 63 74 69 |c_active|) i_acti|
|000057f0| 76 65 20 3d 20 30 3b 0a | 20 20 20 20 20 20 20 20 |ve = 0;.| |
|00005800| 20 20 20 20 20 20 20 20 | 63 6f 6e 74 69 6e 75 65 | |continue|
|00005810| 3b 20 2f 2a 20 77 69 74 | 68 20 72 65 61 64 20 6c |; /* wit|h read l|
|00005820| 6f 6f 70 20 2a 2f 0a 20 | 20 20 20 20 20 20 20 20 |oop */. | |
|00005830| 20 20 20 7d 20 65 6c 73 | 65 0a 20 20 20 20 20 20 | } els|e. |
|00005840| 20 20 20 20 20 20 69 66 | 20 28 72 65 73 75 6c 74 | if| (result|
|00005850| 20 3e 20 30 29 20 7b 20 | 2f 2a 20 61 66 74 65 72 | > 0) { |/* after|
|00005860| 20 2a 2f 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | */. | |
|00005870| 20 20 20 20 6c 6f 77 20 | 3d 20 6d 69 64 2b 31 3b | low |= mid+1;|
|00005880| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00005890| 20 67 6f 74 6f 20 6c 6f | 6f 70 31 3b 0a 20 20 20 | goto lo|op1;. |
|000058a0| 20 20 20 20 20 20 20 20 | 20 7d 20 65 6c 73 65 0a | | } else.|
|000058b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 69 66 20 28 | | if (|
|000058c0| 72 65 73 75 6c 74 20 3c | 20 30 29 20 7b 20 2f 2a |result <| 0) { /*|
|000058d0| 20 62 65 66 6f 72 65 20 | 2a 2f 0a 20 20 20 20 20 | before |*/. |
|000058e0| 20 20 20 20 20 20 20 20 | 20 20 20 68 69 67 68 20 | | high |
|000058f0| 3d 20 6d 69 64 2d 31 3b | 0a 20 20 20 20 20 20 20 |= mid-1;|. |
|00005900| 20 20 20 20 20 20 20 20 | 20 67 6f 74 6f 20 6c 6f | | goto lo|
|00005910| 6f 70 31 3b 0a 20 20 20 | 20 20 20 20 20 20 20 20 |op1;. | |
|00005920| 20 7d 0a 20 20 20 20 20 | 20 20 20 7d 0a 20 20 20 | }. | }. |
|00005930| 20 7d 0a 20 20 20 20 66 | 63 6c 6f 73 65 28 64 65 | }. f|close(de|
|00005940| 73 63 66 69 6c 65 29 3b | 20 0a 20 20 20 20 69 66 |scfile);| . if|
|00005950| 20 28 76 65 72 62 6f 73 | 65 29 20 70 72 69 6e 74 | (verbos|e) print|
|00005960| 66 28 22 46 6f 75 6e 64 | 20 25 64 20 64 65 73 63 |f("Found| %d desc|
|00005970| 72 69 70 74 69 6f 6e 73 | 2e 5c 6e 22 2c 63 6f 75 |riptions|.\n",cou|
|00005980| 6e 74 65 72 29 3b 0a 7d | 0a 0a 2f 2a 20 49 6e 69 |nter);.}|../* Ini|
|00005990| 74 69 61 6c 69 73 65 20 | 74 68 65 20 76 61 72 69 |tialise |the vari|
|000059a0| 6f 75 73 20 63 68 75 6e | 6b 73 20 6f 66 20 6d 65 |ous chun|ks of me|
|000059b0| 6d 6f 72 79 20 61 6e 64 | 20 72 65 61 64 20 69 6e |mory and| read in|
|000059c0| 20 66 69 6c 65 73 2e 20 | 2a 2f 0a 0a 76 6f 69 64 | files. |*/..void|
|000059d0| 20 20 20 20 69 6e 69 74 | 69 61 6c 28 29 0a 7b 0a | init|ial().{.|
|000059e0| 0a 69 6e 74 20 20 20 20 | 6e 65 77 73 72 63 5f 6f |.int |newsrc_o|
|000059f0| 72 64 65 72 3b 20 20 20 | 20 2f 2a 20 74 72 61 63 |rder; | /* trac|
|00005a00| 6b 20 72 65 61 64 69 6e | 67 20 6f 72 64 65 72 20 |k readin|g order |
|00005a10| 66 72 6f 6d 20 2e 6e 65 | 77 73 72 63 20 2a 2f 0a |from .ne|wsrc */.|
|00005a20| 69 6e 74 20 20 20 20 77 | 61 72 6e 69 6e 67 20 3d |int w|arning =|
|00005a30| 20 46 41 4c 53 45 3b 20 | 2f 2a 20 69 66 20 77 61 | FALSE; |/* if wa|
|00005a40| 72 6e 69 6e 67 20 6d 65 | 73 73 61 67 65 73 20 68 |rning me|ssages h|
|00005a50| 61 76 65 20 62 65 65 6e | 20 69 73 73 75 65 64 20 |ave been| issued |
|00005a60| 2a 2f 0a 0a 63 68 61 72 | 20 20 20 2a 6e 61 6d 65 |*/..char| *name|
|00005a70| 2c 20 20 20 2f 2a 20 70 | 6f 69 6e 74 65 72 73 20 |, /* p|ointers |
|00005a80| 69 6e 74 6f 20 6c 69 6e | 65 20 69 6e 20 61 63 74 |into lin|e in act|
|00005a90| 69 76 65 20 66 69 6c 65 | 20 2a 2f 0a 20 20 20 20 |ive file| */. |
|00005aa0| 20 20 20 2a 68 69 2c 0a | 20 20 20 20 20 20 20 2a | *hi,.| *|
|00005ab0| 6c 6f 2c 0a 20 20 20 20 | 20 20 20 2a 66 6c 61 67 |lo,. | *flag|
|00005ac0| 3b 0a 0a 23 69 66 64 65 | 66 20 55 4e 49 58 0a 0a |;..#ifde|f UNIX..|
|00005ad0| 0a 2f 2a 20 43 68 65 63 | 6b 20 66 6f 72 20 61 20 |./* Chec|k for a |
|00005ae0| 6c 6f 63 6b 20 66 69 6c | 65 20 66 72 6f 6d 20 72 |lock fil|e from r|
|00005af0| 6e 20 6f 72 20 74 72 6e | 2e 20 20 49 66 20 69 74 |n or trn|. If it|
|00005b00| 27 73 20 6e 6f 74 20 61 | 72 6f 75 6e 64 2c 0a 20 |'s not a|round,. |
|00005b10| 2a 20 6c 65 74 27 73 20 | 6d 61 6b 65 20 6f 75 72 |* let's |make our|
|00005b20| 20 6f 77 6e 20 6c 6f 63 | 6b 20 66 69 6c 65 2e 0a | own loc|k file..|
|00005b30| 20 2a 2f 0a 20 20 20 20 | 0a 20 20 20 20 69 66 20 | */. |. if |
|00005b40| 28 28 70 74 72 20 3d 20 | 67 65 74 65 6e 76 28 22 |((ptr = |getenv("|
|00005b50| 48 4f 4d 45 22 29 29 20 | 20 20 21 3d 20 28 63 68 |HOME")) | != (ch|
|00005b60| 61 72 20 2a 29 4e 55 4c | 4c 29 20 68 6f 6d 65 20 |ar *)NUL|L) home |
|00005b70| 3d 20 70 74 72 3b 0a 20 | 20 20 20 69 66 20 28 28 |= ptr;. | if ((|
|00005b80| 70 74 72 20 3d 20 67 65 | 74 65 6e 76 28 22 44 4f |ptr = ge|tenv("DO|
|00005b90| 54 44 49 52 22 29 29 20 | 21 3d 20 28 63 68 61 72 |TDIR")) |!= (char|
|00005ba0| 20 2a 29 4e 55 4c 4c 29 | 20 68 6f 6d 65 20 3d 20 | *)NULL)| home = |
|00005bb0| 70 74 72 3b 0a 20 20 20 | 20 69 66 20 28 68 6f 6d |ptr;. | if (hom|
|00005bc0| 65 20 21 3d 20 28 63 68 | 61 72 20 2a 29 4e 55 4c |e != (ch|ar *)NUL|
|00005bd0| 4c 29 0a 20 20 20 20 20 | 20 20 20 73 70 72 69 6e |L). | sprin|
|00005be0| 74 66 28 74 6d 70 2c 20 | 22 25 73 2f 25 73 22 2c |tf(tmp, |"%s/%s",|
|00005bf0| 20 68 6f 6d 65 2c 20 52 | 4e 4c 4f 43 4b 29 3b 0a | home, R|NLOCK);.|
|00005c00| 20 20 20 20 65 6c 73 65 | 20 20 20 20 73 74 72 63 | else| strc|
|00005c10| 70 79 28 74 6d 70 2c 20 | 52 4e 4c 4f 43 4b 29 3b |py(tmp, |RNLOCK);|
|00005c20| 0a 0a 20 20 20 20 69 66 | 20 28 28 66 61 63 74 69 |.. if| ((facti|
|00005c30| 76 65 20 3d 20 66 6f 70 | 65 6e 28 74 6d 70 2c 20 |ve = fop|en(tmp, |
|00005c40| 22 72 22 29 29 20 21 3d | 20 28 46 49 4c 45 20 2a |"r")) !=| (FILE *|
|00005c50| 29 4e 55 4c 4c 29 20 7b | 20 0a 20 20 20 20 20 20 |)NULL) {| . |
|00005c60| 20 69 66 20 28 66 67 65 | 74 73 28 62 75 66 66 65 | if (fge|ts(buffe|
|00005c70| 72 2c 42 55 46 53 49 5a | 45 2c 66 61 63 74 69 76 |r,BUFSIZ|E,factiv|
|00005c80| 65 29 20 21 3d 20 28 63 | 68 61 72 20 2a 29 4e 55 |e) != (c|har *)NU|
|00005c90| 4c 4c 29 20 7b 20 0a 20 | 20 20 20 20 20 20 20 20 |LL) { . | |
|00005ca0| 20 20 70 69 64 20 3d 20 | 61 74 6f 69 28 62 75 66 | pid = |atoi(buf|
|00005cb0| 66 65 72 29 3b 20 0a 20 | 20 20 20 20 20 20 20 20 |fer); . | |
|00005cc0| 20 20 69 66 20 28 70 69 | 64 20 3e 20 30 29 20 7b | if (pi|d > 0) {|
|00005cd0| 20 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | . | |
|00005ce0| 20 69 66 20 28 6b 69 6c | 6c 28 70 69 64 2c 30 29 | if (kil|l(pid,0)|
|00005cf0| 20 3e 3d 20 30 29 20 7b | 20 2f 2a 20 64 6f 65 73 | >= 0) {| /* does|
|00005d00| 6e 27 74 20 65 78 69 73 | 74 3f 20 2a 2f 20 0a 20 |n't exis|t? */ . |
|00005d10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005d20| 20 20 20 70 72 69 6e 74 | 66 28 22 4c 6f 63 6b 20 | print|f("Lock |
|00005d30| 66 69 6c 65 20 25 73 20 | 73 75 67 67 65 73 74 73 |file %s |suggests|
|00005d40| 20 70 72 6f 63 65 73 73 | 20 25 6c 64 20 69 73 20 | process| %ld is |
|00005d50| 61 63 74 69 76 65 2e 5c | 6e 22 2c 20 0a 20 20 20 |active.\|n", . |
|00005d60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005d70| 20 74 6d 70 2c 70 69 64 | 29 3b 20 0a 20 20 20 20 | tmp,pid|); . |
|00005d80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005d90| 70 72 69 6e 74 66 28 22 | 50 6c 65 61 73 65 20 72 |printf("|Please r|
|00005da0| 75 6e 20 45 45 50 20 77 | 69 74 68 6f 75 74 20 72 |un EEP w|ithout r|
|00005db0| 6e 20 6f 72 20 74 72 6e | 20 72 75 6e 6e 69 6e 67 |n or trn| running|
|00005dc0| 2e 5c 6e 22 29 3b 0a 20 | 20 20 20 20 20 20 20 20 |.\n");. | |
|00005dd0| 20 20 20 20 20 20 20 20 | 20 20 20 63 6c 65 61 6e | | clean|
|00005de0| 75 70 28 29 3b 0a 20 20 | 20 20 20 20 20 20 20 20 |up();. | |
|00005df0| 20 20 20 20 20 20 7d 20 | 65 6c 73 65 20 69 66 20 | } |else if |
|00005e00| 28 76 65 72 62 6f 73 65 | 29 20 7b 0a 20 20 20 20 |(verbose|) {. |
|00005e10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005e20| 70 72 69 6e 74 66 28 22 | 41 20 6c 6f 63 6b 20 66 |printf("|A lock f|
|00005e30| 69 6c 65 20 66 6f 72 20 | 72 6e 20 77 61 73 20 66 |ile for |rn was f|
|00005e40| 6f 75 6e 64 20 28 25 73 | 29 5c 6e 22 2c 74 6d 70 |ound (%s|)\n",tmp|
|00005e50| 29 3b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |);. | |
|00005e60| 20 20 20 20 20 20 20 70 | 72 69 6e 74 66 28 22 50 | p|rintf("P|
|00005e70| 72 6f 63 65 73 73 20 25 | 6c 64 20 6e 6f 74 20 66 |rocess %|ld not f|
|00005e80| 6f 75 6e 64 20 2d 2d 20 | 66 69 6c 65 20 69 67 6e |ound -- |file ign|
|00005e90| 6f 72 65 64 2e 5c 6e 22 | 2c 70 69 64 29 3b 0a 20 |ored.\n"|,pid);. |
|00005ea0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 7d | | }|
|00005eb0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 7d 0a 20 |. | }. |
|00005ec0| 20 20 20 20 20 20 20 7d | 0a 20 20 20 20 7d 0a 20 | }|. }. |
|00005ed0| 20 20 20 66 63 6c 6f 73 | 65 28 66 61 63 74 69 76 | fclos|e(factiv|
|00005ee0| 65 29 3b 0a 0a 20 2f 2a | 20 4e 6f 77 20 63 72 65 |e);.. /*| Now cre|
|00005ef0| 61 74 65 20 74 68 65 20 | 6c 6f 63 6b 20 66 69 6c |ate the |lock fil|
|00005f00| 65 2e 20 2a 2f 0a 20 20 | 20 20 70 69 64 20 3d 20 |e. */. | pid = |
|00005f10| 67 65 74 70 69 64 28 29 | 3b 0a 20 20 20 20 69 66 |getpid()|;. if|
|00005f20| 20 28 76 65 72 62 6f 73 | 65 29 20 70 72 69 6e 74 | (verbos|e) print|
|00005f30| 66 28 22 43 72 65 61 74 | 69 6e 67 20 6c 6f 63 6b |f("Creat|ing lock|
|00005f40| 20 66 69 6c 65 20 25 73 | 20 77 69 74 68 20 70 69 | file %s| with pi|
|00005f50| 64 20 25 6c 64 5c 6e 22 | 2c 74 6d 70 2c 70 69 64 |d %ld\n"|,tmp,pid|
|00005f60| 29 3b 0a 20 20 20 20 69 | 66 20 28 28 66 61 63 74 |);. i|f ((fact|
|00005f70| 69 76 65 20 3d 20 66 6f | 70 65 6e 28 74 6d 70 2c |ive = fo|pen(tmp,|
|00005f80| 20 22 77 22 29 29 20 3d | 3d 20 28 46 49 4c 45 20 | "w")) =|= (FILE |
|00005f90| 2a 29 4e 55 4c 4c 29 20 | 7b 0a 20 20 20 20 20 20 |*)NULL) |{. |
|00005fa0| 20 20 70 72 69 6e 74 66 | 28 22 46 61 74 61 6c 3a | printf|("Fatal:|
|00005fb0| 20 43 61 6e 27 74 20 63 | 72 65 61 74 65 20 6c 6f | Can't c|reate lo|
|00005fc0| 63 6b 20 66 69 6c 65 20 | 25 73 20 5c 6e 22 2c 20 |ck file |%s \n", |
|00005fd0| 74 6d 70 29 3b 0a 20 20 | 20 20 20 20 20 20 65 78 |tmp);. | ex|
|00005fe0| 69 74 28 30 29 3b 0a 20 | 20 20 20 7d 0a 20 20 20 |it(0);. | }. |
|00005ff0| 20 66 70 72 69 6e 74 66 | 28 66 61 63 74 69 76 65 | fprintf|(factive|
|00006000| 2c 22 25 6c 64 5c 6e 22 | 2c 20 70 69 64 29 3b 0a |,"%ld\n"|, pid);.|
|00006010| 20 20 20 20 66 63 6c 6f | 73 65 28 66 61 63 74 69 | fclo|se(facti|
|00006020| 76 65 29 3b 0a 23 65 6e | 64 69 66 20 2f 2a 20 55 |ve);.#en|dif /* U|
|00006030| 4e 49 58 20 2a 2f 0a 0a | 23 69 66 64 65 66 20 44 |NIX */..|#ifdef D|
|00006040| 4f 53 0a 20 20 20 20 6d | 73 6c 65 65 70 28 30 4c |OS. m|sleep(0L|
|00006050| 29 3b 20 20 20 2f 2a 20 | 69 6e 69 74 69 61 6c 69 |); /* |initiali|
|00006060| 7a 65 20 74 69 6d 65 20 | 72 6f 75 74 69 6e 65 73 |ze time |routines|
|00006070| 20 2a 2f 0a 23 65 6e 64 | 69 66 20 2f 2a 20 44 4f | */.#end|if /* DO|
|00006080| 53 20 2a 2f 0a 0a 2f 2a | 0a 20 2a 20 0a 20 2a 20 |S */../*|. * . * |
|00006090| 42 65 63 61 75 73 65 20 | 4e 45 57 53 47 52 4f 55 |Because |NEWSGROU|
|000060a0| 50 53 20 63 61 6e 20 6f | 66 74 65 6e 20 63 6f 6e |PS can o|ften con|
|000060b0| 74 61 69 6e 20 6c 6f 74 | 73 20 6f 66 20 64 75 70 |tain lot|s of dup|
|000060c0| 6c 69 63 61 74 65 73 2c | 20 77 68 69 6c 65 0a 20 |licates,| while. |
|000060d0| 2a 20 74 68 65 20 61 63 | 74 69 76 65 20 66 69 6c |* the ac|tive fil|
|000060e0| 65 20 69 73 20 22 63 6c | 65 61 6e 65 72 22 2c 20 |e is "cl|eaner", |
|000060f0| 6c 65 74 27 73 20 72 65 | 61 64 20 74 68 65 20 61 |let's re|ad the a|
|00006100| 63 74 69 76 65 20 66 69 | 6c 65 20 46 49 52 53 54 |ctive fi|le FIRST|
|00006110| 2c 0a 20 2a 20 74 68 65 | 6e 20 73 63 61 6e 20 74 |,. * the|n scan t|
|00006120| 68 65 20 4e 45 57 53 47 | 52 4f 55 50 53 20 61 6e |he NEWSG|ROUPS an|
|00006130| 64 20 4e 45 57 53 4c 4f | 43 41 4c 20 66 69 6c 65 |d NEWSLO|CAL file|
|00006140| 20 6c 6f 6f 6b 69 6e 67 | 20 66 6f 72 0a 20 2a 20 | looking| for. * |
|00006150| 64 65 73 63 72 69 70 74 | 69 6f 6e 73 2e 20 20 57 |descript|ions. W|
|00006160| 65 20 73 68 6f 75 6c 64 | 20 74 72 79 20 74 6f 20 |e should| try to |
|00006170| 66 69 6e 64 20 74 68 65 | 20 62 65 73 74 20 64 65 |find the| best de|
|00006180| 73 63 72 69 70 74 69 6f | 6e 2c 20 69 2e 65 2e 0a |scriptio|n, i.e..|
|00006190| 20 2a 20 6f 6e 65 20 74 | 68 61 74 20 69 73 20 6e | * one t|hat is n|
|000061a0| 6f 74 20 6e 75 6c 6c 2c | 20 6e 6f 74 20 61 20 27 |ot null,| not a '|
|000061b0| 3f 27 2c 20 61 6e 64 20 | 6e 6f 74 20 22 61 6c 74 |?', and |not "alt|
|000061c0| 20 67 72 6f 75 70 22 2e | 0a 20 2a 20 41 20 73 69 | group".|. * A si|
|000061d0| 6d 70 6c 65 20 73 65 71 | 75 65 6e 74 69 61 6c 20 |mple seq|uential |
|000061e0| 72 65 61 64 20 6f 66 20 | 74 68 65 73 65 20 66 69 |read of |these fi|
|000061f0| 6c 65 73 20 69 73 20 61 | 64 65 71 75 61 74 65 2e |les is a|dequate.|
|00006200| 20 20 4e 6f 74 65 0a 20 | 2a 20 74 68 61 74 20 74 | Note. |* that t|
|00006210| 68 65 20 61 63 74 69 76 | 65 20 66 69 6c 65 20 69 |he activ|e file i|
|00006220| 73 20 61 75 74 68 6f 72 | 69 74 61 74 69 76 65 20 |s author|itative |
|00006230| 77 68 65 6e 20 69 74 20 | 63 6f 6d 65 73 20 74 6f |when it |comes to|
|00006240| 20 62 6f 67 75 73 0a 20 | 2a 20 67 72 6f 75 70 73 | bogus. |* groups|
|00006250| 2c 20 77 68 69 63 68 20 | 6d 65 61 6e 73 20 77 65 |, which |means we|
|00006260| 20 63 6f 75 6c 64 20 73 | 69 6d 70 6c 79 20 69 67 | could s|imply ig|
|00006270| 6e 6f 72 65 20 65 6e 74 | 72 69 65 73 20 66 72 6f |nore ent|ries fro|
|00006280| 6d 20 74 68 65 0a 20 2a | 20 4e 45 57 53 47 52 4f |m the. *| NEWSGRO|
|00006290| 55 50 53 20 66 69 6c 65 | 20 74 68 61 74 20 61 72 |UPS file| that ar|
|000062a0| 65 6e 27 74 20 69 6e 20 | 74 68 65 20 61 63 74 69 |en't in |the acti|
|000062b0| 76 65 20 66 69 6c 65 2e | 20 20 0a 20 2a 0a 20 2a |ve file.| . *. *|
|000062c0| 20 57 68 65 6e 20 77 65 | 20 72 65 61 64 20 74 68 | When we| read th|
|000062d0| 65 20 2e 6e 65 77 73 72 | 63 2c 20 77 65 20 73 74 |e .newsr|c, we st|
|000062e0| 69 6c 6c 20 6e 65 65 64 | 20 74 6f 20 61 64 64 20 |ill need| to add |
|000062f0| 65 6e 74 72 69 65 73 20 | 66 6f 72 0a 20 2a 20 62 |entries |for. * b|
|00006300| 6f 67 75 73 20 67 72 6f | 75 70 73 2c 20 74 6f 20 |ogus gro|ups, to |
|00006310| 67 69 76 65 20 70 65 6f | 70 6c 65 20 74 68 65 20 |give peo|ple the |
|00006320| 6f 70 74 69 6f 6e 20 6f | 66 20 6b 65 65 70 69 6e |option o|f keepin|
|00006330| 67 20 73 74 72 61 6e 67 | 65 0a 20 2a 20 73 74 75 |g strang|e. * stu|
|00006340| 66 66 20 69 6e 20 74 68 | 65 69 72 20 2e 6e 65 77 |ff in th|eir .new|
|00006350| 73 72 63 2e 20 20 54 68 | 69 73 20 6d 65 61 6e 73 |src. Th|is means|
|00006360| 20 77 65 20 73 68 6f 75 | 6c 64 20 70 72 6f 6d 70 | we shou|ld promp|
|00006370| 74 20 62 65 66 6f 72 65 | 0a 20 2a 20 73 61 76 69 |t before|. * savi|
|00006380| 6e 67 20 77 68 65 74 68 | 65 72 20 74 68 65 79 20 |ng wheth|er they |
|00006390| 77 61 6e 74 20 74 6f 20 | 6c 6f 73 65 20 74 68 65 |want to |lose the|
|000063a0| 20 62 6f 67 75 73 20 67 | 72 6f 75 70 73 20 6f 72 | bogus g|roups or|
|000063b0| 20 6e 6f 74 2e 0a 20 2a | 20 0a 20 2a 2f 0a 0a 23 | not.. *| . */..#|
|000063c0| 69 66 64 65 66 20 4e 4e | 54 50 0a 20 20 20 20 69 |ifdef NN|TP. i|
|000063d0| 66 20 28 6e 6e 74 70 5f | 6f 6b 29 20 7b 0a 20 20 |f (nntp_|ok) {. |
|000063e0| 20 20 20 20 20 20 72 65 | 61 64 5f 61 63 74 69 76 | re|ad_activ|
|000063f0| 65 5f 6e 6e 74 70 28 29 | 3b 0a 20 20 20 20 7d 20 |e_nntp()|;. } |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.